GitHub - ModuleLoader/system-register-loader: Module loader to load System.register modules in the browser and Node
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
Public archive
Branches
Tags
Go to Branches page Go to Tags page
44 Commits
View commit history for this file.
Repository navigation
system-register-loaderPublic archive
About
Module loader to load System.register modules in the browser and Node
Resources
Readme Activity Custom propertiesStars
15 starsWatchers
1 watchingForks
2 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
44 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| example | example | ||
| src | src | ||
| .gitignore | .gitignore | ||
| .npmignore | .npmignore | ||
| README.md | README.md | ||
| package.json | package.json | ||
| rollup.config.js | rollup.config.js | ||
Repository files navigation
System Register Loader
Only loads System.register modules, as described in https://github.com/ModuleLoader/es-module-loader/blob/master/docs/system-register.md .
Follows the WhatWG loader resolution algorithm, throwing when loading plain / bare names like "lodash".
Built with the ES Module Loader polyfill 1.0 branch at https://github.com/ModuleLoader/es-module-loader .
Installation
npm install system-register-loader
Browser Usage
<script src="dist/system-register-loader.js"></script>
<script>
var loader = new SystemRegisterLoader();
// relative path or URL syntax is necessary as plain resolution throws
loader.import('./path/to/file.js').then(function(m) {
// ...
});
</script>
Node Usage
var SystemRegisterLoader = require('system-register-loader');
var loader = new SystemRegisterLoader();
loader.import('./path').then(function(m) {
// ...
});
LICENSE
MIT
About
Module loader to load System.register modules in the browser and Node