Skip to content

Commit

Permalink
Merge pull request #475 from embroider-build/renamed-transpiled-modules
Browse files Browse the repository at this point in the history
fix renamed-modules when used with languages that transpile to js
  • Loading branch information
ef4 authored Jun 23, 2020
2 parents e29151b + 2f3f091 commit adf3f1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/compat/src/v1-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,9 @@ export default class V1Addon implements V1Package {

// this captures addons that are trying to escape their own package's
// namespace
let result = rewriteAddonTree(tree, this.name, this.moduleName);
tree = result.tree;
let result = rewriteAddonTree(this.transpile(tree), this.name, this.moduleName);
built.dynamicMeta.push(result.getMeta);

return this.transpile(tree);
return result.tree;
}
} else if (this.hasStockTree('addon')) {
return this.transpile(this.stockTree('addon'));
Expand Down

0 comments on commit adf3f1b

Please sign in to comment.