Skip to content

Support as default exports with template colocation#336

Merged
rwjblue merged 1 commit intoember-cli:masterfrom
dfreeman:handle-named-default-exports
Oct 18, 2019
Merged

Support as default exports with template colocation#336
rwjblue merged 1 commit intoember-cli:masterfrom
dfreeman:handle-named-default-exports

Conversation

@dfreeman
Copy link
Copy Markdown
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
Copy Markdown
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