MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / packageJavascript

Method packageJavascript

lib/broccoli/default-packager.js:1119–1136  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

1117 * @return {BroccoliTree}
1118 */
1119 packageJavascript(tree) {
1120 if (this._cachedJavascript === null) {
1121 let applicationJs = this.processAppAndDependencies(tree);
1122
1123 let vendorFilePath = this.distPaths.vendorJsFile;
1124 this.scriptOutputFiles[vendorFilePath].unshift('vendor/ember-cli/vendor-prefix.js');
1125
1126 let appJs = this.packageApplicationJs(applicationJs);
1127 let vendorJs = this.packageVendorJs(applicationJs);
1128
1129 this._cachedJavascript = mergeTrees([appJs, vendorJs], {
1130 overwrite: true,
1131 annotation: 'Packaged Javascript',
1132 });
1133 }
1134
1135 return this._cachedJavascript;
1136 }
1137
1138 /*
1139 * Concatenates all application's javascript Broccoli trees into one, as follows:

Callers 3

_legacyPackageMethod · 0.80
ember-app-test.jsFile · 0.80
javascript-test.jsFile · 0.80

Calls 3

packageApplicationJsMethod · 0.95
packageVendorJsMethod · 0.95

Tested by

no test coverage detected