Skip to content

Emit updated export declarations when transformed from export *#18017

Merged
weswigham merged 4 commits into
masterfrom
actually-emit-updated-export-declarations
Sep 7, 2017
Merged

Emit updated export declarations when transformed from export *#18017
weswigham merged 4 commits into
masterfrom
actually-emit-updated-export-declarations

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes #17597.

@weswigham weswigham requested review from a user and rbuckton August 24, 2017 17:00
Comment thread src/harness/unittests/transform.ts Outdated
}).outputText;

// Note: this is a simplified implementation that is missing some corner cases
// but is enough to show the bug.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What bug? This comment has no reference to the original issue, so consider removing or adding details

@ghost
Copy link
Copy Markdown

ghost commented Aug 25, 2017

What happens if we have an export * from "./foo" but the module "./foo" does not export any values?

@weswigham
Copy link
Copy Markdown
Member Author

weswigham commented Sep 5, 2017

@Andy-MS I've changed how this is handled - now, rather than attempting to use the resolver with synthesized nodes (which is brittle, since we don't really support it), if a node which we perform ellision on is transformed, we no longer perform ellision on it. (This means anyone transforming these must perform any ellision themselves if they would want to do so.)

@weswigham weswigham merged commit ed61d2d into master Sep 7, 2017
@weswigham weswigham deleted the actually-emit-updated-export-declarations branch September 12, 2017 02:27
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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.

4 participants