0.3.1 • Published 7 years ago

system-register-loader v0.3.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago