Configurable module loader enabling dynamic ES module workflows in browsers and NodeJS.
SystemJS is currently sponsored by Canopy Tax.
System.registermodule format for production with exact circular reference and binding support
Built with the ES Module Loader project, which is based on principles and APIs from the WhatWG Loader specification, modules in HTML and NodeJS.
Supports IE9+ provided a promises polyfill is available in the environment.
For discussion, join the Gitter Room.
The above will support loading all module formats.
To load ES6 code with in-browser transpilation, one of the following transpiler plugins must be configured:
When all modules are already transpiled into the
System.register module format (which can be output via Babel or TypeScript through any build workflow), a production-only loader can be used:
Configuration support in the production loader includes baseURL, paths, map, contextual map, bundles and depCache.
To load modules in NodeJS, install SystemJS with:
npm install systemjs
If transpiling ES modules, install the transpiler plugin following the instructions from the transpiler project page.
We can then load modules equivalently in NodeJS as we do in the browser:
var SystemJS = ;// loads './app.js' from the current directorySystemJS;
To import a module with the NodeJS module resolution, import with
import moduleName from '@node/module-name'.
npm run build && npm run test