Skip to content

Commit

Permalink
fix(mobile): remove app/index.js from concatenated bundle (#1267)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeffbcross authored and filipesilva committed Jul 6, 2016
1 parent baad1d3 commit 03fd4c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/broccoli/angular2-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 03fd4c4

Please sign in to comment.