Closed outring closed 9 years ago
Thanks for this. I (not really a user of webpack/browserify/commonjs/umd) are looking into this problem.
We have 2 issues/pr on this already and would like to find a solution that benefits most of these. UMD seems to be what is most decent. Currently working on writing tests for it.
Refs #89 #90 #91 #92
+1 for the AMD implementation referenced @somepylasar especially for ngStorage use with browserify.
The resulting implementation is to otherwise use:
var angular = require('angular');
require("ngStorage");
angular.module('adminApp', [
'ngStorage'
]);
What everyone wants to do is:
angular.module('adminApp', [
require("ngStorage")
]);
When using Angular with webpack/browserify there's a good way to define module dependencies using
require
d module name. But your module doesn't return anything and there's no way to get it's name.Now it does :)