Skip to content

Commit 965b155

Browse files
committed
Remove treeForVendor
1 parent fc4ea40 commit 965b155

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

lib/index.js

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ module.exports = {
191191
// considers `__dirname` here to be the root, but since our main entry
192192
// point is within a subfolder we need to correct that
193193
this.root = path.join(__dirname, '..');
194-
195-
// Updates the vendor tree to point to dist, so we get the correct tree in
196-
// treeForVendor
197-
this.treePaths.vendor = 'dist';
198194
},
199195

200196
_overrideTree: undefined,
@@ -220,38 +216,4 @@ module.exports = {
220216
this.ui.writeWarnLine('[DEPRECATION] ' + overrides.buildTimeWarning);
221217
}
222218
},
223-
224-
treeForVendor(tree) {
225-
if (shim.treeForVendor) {
226-
tree = shim.treeForVendor.call(this, tree);
227-
}
228-
229-
let templateCompiler = new Funnel(tree, {
230-
destDir: 'ember',
231-
include: ['ember-template-compiler.js', 'ember-template-compiler.js.map'],
232-
});
233-
234-
let emberAMDBundles;
235-
236-
// ember-cli always tries to append these to vendor.js, so even when we
237-
// don't want to put anything in them they need to exist as empty files.
238-
emberAMDBundles = new MergeTrees([
239-
createFile('ember/ember.js', ''),
240-
createFile('ember/ember.js.map', ''),
241-
createFile('ember/ember-testing.js', ''),
242-
createFile('ember/ember-testing.js.map', ''),
243-
]);
244-
245-
let emberCliBabel = this.addons.find((a) => a.name === 'ember-cli-babel');
246-
247-
// this is primarily so we get preset-env with the app's targets. All our
248-
// special stuff was already accounted for in the building of the bundles.
249-
return emberCliBabel.transpileTree(new MergeTrees([emberAMDBundles, templateCompiler]), {
250-
'ember-cli-babel': {
251-
compileModules: false,
252-
disableDebugTooling: true,
253-
disableEmberModulesAPIPolyfill: true,
254-
},
255-
});
256-
},
257219
};

0 commit comments

Comments
 (0)