From e4f94f067847e1dbfcbdd241eb2833a3e8da8e55 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 14 Sep 2015 15:38:10 -0700 Subject: [PATCH] fix(build): lazy-require es6-shim in the a1 router to prevent npm/gulp issues We should really remove this shim from the angular 1 bundle. I'll create an issue for that. --- modules/angular1_router/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular1_router/build.js b/modules/angular1_router/build.js index dc2ddf21c3..e907bf3547 100644 --- a/modules/angular1_router/build.js +++ b/modules/angular1_router/build.js @@ -22,8 +22,8 @@ var PRELUDE = '(function(){\n'; var POSTLUDE = '\n}());\n'; var FACADES = fs.readFileSync(__dirname + '/lib/facades.es5', 'utf8'); var DIRECTIVES = fs.readFileSync(__dirname + '/src/ng_outlet.js', 'utf8'); -var ES6_SHIM = fs.readFileSync(__dirname + '/../../node_modules/es6-shim/es6-shim.js', 'utf8'); function main() { + var ES6_SHIM = fs.readFileSync(__dirname + '/../../node_modules/es6-shim/es6-shim.js', 'utf8'); var dir = __dirname + '/../angular2/src/router/'; var out = '';