Skip to content

If declaration emit input is a module, output should be a module#20626

Merged
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:input-module-implies-output-module
Jan 8, 2018
Merged

If declaration emit input is a module, output should be a module#20626
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:input-module-implies-output-module

Conversation

@weswigham
Copy link
Copy Markdown
Member

@weswigham weswigham commented Dec 11, 2017

Fixes #20496

We tried to ensure this if the module contained module augmentations, but the code for that missed a lot of module indicator nodes (and would emit export {} too eagerly), so in addition to removing the restriction of only doing it for files with module augmentations, I had to tighten that up a bit. There's still a bunch of tests with changes to add export {}, but they should have them since the input file was a module.

@weswigham weswigham merged commit b1a0261 into microsoft:master Jan 8, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants