Skip to content

Commit 03fd4c4

Browse files
jeffbcrossfilipesilva
authored andcommitted
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.
1 parent baad1d3 commit 03fd4c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/broccoli/angular2-app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,7 @@ class Angular2App extends BroccoliPlugin {
440440
}), {
441441
headerFiles: this._options.polyfills.concat([
442442
'system-config.js',
443-
'main.js',
444-
'app/index.js'
443+
'main.js'
445444
]),
446445
inputFiles: [
447446
'system-import.js'

0 commit comments

Comments
 (0)