Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Module loader to load System.register modules in the browser and Node

Notifications You must be signed in to change notification settings

ModuleLoader/system-register-loader

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.