Skip to content

Never return undefined from getExportsOfModule#17013

Merged
1 commit merged into
masterfrom
forEach
Jul 7, 2017
Merged

Never return undefined from getExportsOfModule#17013
1 commit merged into
masterfrom
forEach

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 7, 2017

Fixes #16537 and #16610

Turns out the error also requires @types/node to be installed to reproduce. The problem was with an ambiently declared module having export = of a value with no exports, thus the result of getExportsOfModule was unexpectedly undefined.

@ghost ghost requested a review from sandersn July 7, 2017 16:29
@ghost ghost merged commit ba8e5a7 into master Jul 7, 2017
@ghost ghost deleted the forEach branch July 7, 2017 17:06
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
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