= AMD
(Asynchronous Module Definition)
This is what AMD looks like.
= CommonJS
This is what Common JS looks like.
With Browserify, there's an extra step:
That will build the bundle that we reference in our html.
A structure for Angular with Browserify
This is how you configure your libs in package.json
System JS +
= ES6 Modules
In order to run this in the browser we need to include an ES6 runtime (Traceur or Babel) and the ES6 module loader shim.
Named Exports
Or
Then
You can use Steal JS to help you create multiple bundles to get the benefits of both bundling AND lazy loading.