Skip to content

Commit

Permalink
fix: thread config from host to nested deps (#8199)
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired authored Oct 2, 2022
1 parent 3223553 commit 52d1efc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ function addonBuildConfigForDataPackage(PackageName) {
included() {
this._super.included.apply(this, arguments);

const host = this._findHost();
const name = this.name;
const options = host.options['@embroider/macros']?.setConfig?.[name];

if (options) {
Object.assign(this.options['@embroider/macros'].setOwnConfig, options);
}

this._setupBabelOptions();
},

Expand Down

0 comments on commit 52d1efc

Please sign in to comment.