Skip to content

stealjs/system-define

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status npm version

system-define

A better version of the System.define function than what is currently available. Has the following advantages:

  • Registers a moduleName as providing a given source and then returns that source when moduleName is imported.
    • Doesn't prematurely instantiate or execute the module like System.define.

This is implemented as an extension for StealJS currently.

Usage

For backwards compatibility this extension does not overwrite System.define but instead creates a System._define. The goal is that when the new spec is released (without a System.define), this will be renamed to System.define (or System.loader.define or whatever).

License

MIT

Releases

No releases published

Packages

No packages published