Skip to content

allowSyntheticDefaultImports resolves to modules instead of variables #10486

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

Merged
merged 1 commit into from
Aug 22, 2016

Conversation

sandersn
Copy link
Member

Fixes #10429 by improving the fix in #10096.
#10096 allowed aliasing of default imports, but did so by treating the module as a variable and resolving names on this 'variable'. This changes the check introduced in #10096 to resolve the name as a module if resolving the name on a module fails.

@sandersn
Copy link
Member Author

@vladima @mhegazy can you take a look?

@mhegazy
Copy link
Contributor

mhegazy commented Aug 22, 2016

👍

@sandersn sandersn merged commit 93de502 into master Aug 22, 2016
@sandersn sandersn deleted the allowSyntheticDefaultImports-resolves-to-module branch August 22, 2016 23:50
@weswigham
Copy link
Member

👍

@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation errors with enabled allowSyntheticDefaultImports on 2.1 nightly
4 participants