From 03fd4c49148022cee34ef70471252cbc6af85a64 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Wed, 6 Jul 2016 10:43:01 -0700 Subject: [PATCH] fix(mobile): remove app/index.js from concatenated bundle (#1267) Currently, when building for production with --mobile, there is a runtime error because require is being called. This is because the app/index.js file is being concatenated into the final script, in addition to having already been processed by System bundler. Since it's already included in the bundle, it shouldn't be explicitly added to the concatenated JS file. --- lib/broccoli/angular2-app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/broccoli/angular2-app.js b/lib/broccoli/angular2-app.js index 1d2879b5296e..8402e5c7e576 100644 --- a/lib/broccoli/angular2-app.js +++ b/lib/broccoli/angular2-app.js @@ -440,8 +440,7 @@ class Angular2App extends BroccoliPlugin { }), { headerFiles: this._options.polyfills.concat([ 'system-config.js', - 'main.js', - 'app/index.js' + 'main.js' ]), inputFiles: [ 'system-import.js'