MODULE LOADERS
Module loaders allow you to request modules from the server on demand as opposed to loading every single JS module or a single bundled JS file all at once. The ECMAScript 6 module specification outlines an eventual target for browsers to natively support dynamic module loading. Presently, many browsers still do not support ES6 module loading, and therefore module loaders serve as a sort of polyfill that allows for packages to dynamically load modules from the client.
SystemJS
The SystemJS module loader is geared for either server or client use. It supports all module formats, including AMD, CommonJS, UMD, and ES6. It also supports in-browser transpilation (not recommended for large-scale projects because of performance implications).
- Website:
https://github.com/systemjs/
RequireJS
RequireJS is built atop the AMD module specification and offers exceptional legacy browser support. Although RequireJS is tried and true, the JavaScript community as a whole is largely...