From 3f1564a64f91a535b1f711c46624d9e0adb5122b Mon Sep 17 00:00:00 2001 From: Charles Pierce Date: Fri, 19 Mar 2021 15:43:36 -0700 Subject: [PATCH] Include addon name directory in 'treeForAddon' --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ad0463df..03126f93 100644 --- a/index.js +++ b/index.js @@ -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() {