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

Move module transformers to end of transformations #11769

Merged
merged 8 commits into from
Oct 27, 2016

Conversation

rbuckton
Copy link
Member

@rbuckton rbuckton commented Oct 21, 2016

This change moves the transformers for ES2015, CommonJS, AMD, UMD, and System to the end of the transformation chain. In addition this cleans up the various module transformers to be more consistent.

This will allow us to isolate emit helpers to specific transformations, which was blocked by the fact that the module transformation happened very early in the transformation chain.

This also fixes a compiler crash when emitting a destructuring assignment with a destructuring target of an exported variable with --module system.

Fixes #11770

@rbuckton rbuckton added the Domain: Transforms Relates to the public transform API label Oct 21, 2016
@rbuckton rbuckton changed the title Move module transformers to end of transformations. Move module transformers to end of transformations Oct 21, 2016
@rbuckton
Copy link
Member Author

// CC: @mhegazy, @vladima, @yuit

@rbuckton rbuckton merged commit e6bea90 into master Oct 27, 2016
@rbuckton rbuckton deleted the moveModuleTransformToEnd branch October 27, 2016 00:51
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: Transforms Relates to the public transform API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler Crash for destructuring assignment to exported symbol
3 participants