Skip to content

Commit b9be3a9

Browse files
committed
fix(mobile): remove app/index.js from concatenated bundle
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 5514163 commit b9be3a9

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
@@ -429,8 +429,7 @@ class Angular2App extends BroccoliPlugin {
429429
}), {
430430
headerFiles: this._options.polyfills.concat([
431431
'system-config.js',
432-
'main.js',
433-
'app/index.js'
432+
'main.js'
434433
]),
435434
inputFiles: [
436435
'system-import.js'

0 commit comments

Comments
 (0)