I am building a basic outline for a fairly complex angular.js application. I choose browserify this time over require.js because of support of cjs modules in browser. But the only thing that is now holding me back is the fact that browserify bundles each 'require' call in the same file. So for e.g if I have the modules:
MODULE - A (Requires angular.js and jQuery)
MODULE - B (Requires angular.js and jQuery)
What browserify will do is, it will bundle angular and jQuery in both the MODULE-A and MODULE-B which is going to increase the size of the code base in the first place. When I try to compare the same with require.js, its evident that require is going to load the angular.js only once. So is it a known tradeoff between performance and flexibility?
Is it how it is suppose to be? Kindly shed some light over the same.