Improved Browserify compatibility#155
Conversation
mchambaud
commented
Oct 30, 2015
- Package.json should not specify minified version as main.
- Module should export itself for UMD builds.
Improved Browserify compatibility
|
Looks great, thanks! |
|
Awesome thank you! Any chance for a version bump and publish to NPM? |
|
to make that even more compliant with best practices, module.exports should not export the module itsself, but the name of the module, i.e. |
|
those people just don't know better yet... :) |
|
Using angular with browserify makes me a bit uncomfortable because they both try to solve the same problem. Haven't read any best practices for this and am not too opinionated, personally for my angular projects I export both :-) Somehow feels weird for an AMD to only return strings. Got any links on the matter? |
see http://blog.npmjs.org/post/114584444410/using-angulars-new-improved-browserify-support basically like this // require the module
var scroll = require('angular-scroll')
// and add it as dependency to your app
angular.module('app', [scroll]) |
|
@ctaepper: As of 0.7.4 this is now the behavior. If you want to access the module itself then do a |
|
👍 |
1 similar comment
|
👍 |
|
It's actually 1.0.0 now since it broke someone's installation :-) |