Skip to content

Move module transformers to end of transformations#11769

Merged
rbuckton merged 8 commits into
masterfrom
moveModuleTransformToEnd
Oct 27, 2016
Merged

Move module transformers to end of transformations#11769
rbuckton merged 8 commits into
masterfrom
moveModuleTransformToEnd

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

@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: API: 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
Copy Markdown
Contributor 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: API: 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