Skip to content

Commit 679d0e6

Browse files
committed
fix(mobile): include vendor scripts in bundle
Closes angular#733
1 parent 818fb19 commit 679d0e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/broccoli/angular2-app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ class Angular2App extends BroccoliPlugin {
415415
var indexFile = path.join(this._sourceDir, 'index.html');
416416
var indexContent = fs.readFileSync(indexFile, 'utf8');
417417
var scriptTagVendorFiles = indexContent.match(/vendor\/[^"']*\.js/gi);
418+
var vendorTree = this._getVendorNpmTree();
418419

419420
var scriptTree = new BroccoliFunnel(preBundleTree, {
420421
include: scriptTagVendorFiles
@@ -430,7 +431,7 @@ class Angular2App extends BroccoliPlugin {
430431
var bundleTree = new BundlePlugin([jsTree]);
431432

432433
if (this.ngConfig.apps[0].mobile) {
433-
bundleTree = concat(BroccoliMergeTrees([jsTree, scriptTree, bundleTree], {
434+
bundleTree = concat(BroccoliMergeTrees([vendorTree, jsTree, scriptTree, bundleTree], {
434435
overwrite: true
435436
}), {
436437
headerFiles: this._options.polyfills.concat([

0 commit comments

Comments
 (0)