Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix renamed-modules when used with languages that transpile to js #475

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jun 16, 2020

The rewriteAddonTree transformation captures any modules that are trying to escape their own package namespace and records their names as our renamed-modules in the addon metadata. But if you are using typescript or another preprocessor that changes the file extensions, we currently save the renamed-modules and then transpile, which results in the names in the metadata not matching the actual files.

This switches the order so we preprocessor first and then record the renamed-modules.

The `rewriteAddonTree` transformation captures any modules that are trying to escape their own package namespace and records their names as our `renamed-modules` in the addon metadata. But if you are using typescript or another preprocessor that changes the file extensions, we currently save the renamed-modules and then transpile, which results in the names in the metadata not matching the actual files.

This switches the order so we preprocessor first and then record the renamed-modules.
@ef4
Copy link
Contributor Author

ef4 commented Jun 17, 2020

(I need to come back around and add test coverage here.)

@ef4 ef4 merged commit adf3f1b into master Jun 23, 2020
@ef4 ef4 deleted the renamed-transpiled-modules branch June 23, 2020 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant