From 1594c3892b27c224e8648310bb15f8d2e07f6700 Mon Sep 17 00:00:00 2001 From: Peter Geil Date: Thu, 14 Jan 2016 09:30:43 +0100 Subject: [PATCH] Expose current Builder instance as context properties `System` and `SystemJS` That way systemjs-builder stays compatible with older configuration fiiles where the global `SystemJS` was used. --- lib/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.js b/lib/builder.js index 764d03b..d8735a3 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -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