Skip to content

Commit

Permalink
Merge pull request #394 from charlespierce/tree_include_addon
Browse files Browse the repository at this point in the history
Include addon name directory in 'treeForAddon'
  • Loading branch information
rwjblue committed Apr 28, 2021
2 parents 670773f + 3f1564a commit b39ad50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,16 @@ module.exports = {
destDir: '@babel/runtime/helpers/esm'
});

return this.transpileTree(babelHelpersTree, {
const transpiledHelpers = this.transpileTree(babelHelpersTree, {
'ember-cli-babel': {
// prevents the helpers from being double transpiled, and including themselves
disablePresetEnv: true
}
});

return new Funnel(transpiledHelpers, {
destDir: this.moduleName(),
});
},

treeForVendor() {
Expand Down

0 comments on commit b39ad50

Please sign in to comment.