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

Support as default exports with template colocation #336

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

dfreeman
Copy link
Contributor

We discovered in typed-ember/ember-cli-typescript#906 that @babel/plugin-transform-typescript can transform default export statements into named export { foo as default } statements under certain conditions, which isn't currently detected by the colocation babel plugin.

This PR updates the babel plugin to account for this case, as well as adding some direct testing with @babel/core. If there's another testing approach that's preferable, I'm happy to update.

@rwjblue rwjblue added the bug label Oct 18, 2019
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@rwjblue rwjblue merged commit f30a7c2 into ember-cli:master Oct 18, 2019
@dfreeman dfreeman deleted the handle-named-default-exports branch October 18, 2019 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants