Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Expose current Builder instance as context properties System and `S…
Browse files Browse the repository at this point in the history
…ystemJS`

That way systemjs-builder stays compatible with older configuration fiiles where the global `SystemJS` was used.
  • Loading branch information
gcnm-pgeil committed Jan 14, 2016
1 parent 372dea0 commit 1594c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function executeConfigFile(saveForReset, ignoreBaseURL, configPath, source) {
// only substitute local copy of System
// and prevent that code from adding anything to the real global
var context = Object.create(global);
context.System = configLoader;
context.SystemJS = context.System = configLoader;
context.global = context.GLOBAL = context.root = context;
// make require available too, make it look as if config file was
// loaded like a module
Expand Down

0 comments on commit 1594c38

Please sign in to comment.