Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

allowSyntheticDefaultImports resolves to modules instead of variables#10486

Merged
sandersn merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
allowSyntheticDefaultImports-resolves-to-modulemicrosoft/TypeScript:allowSyntheticDefaultImports-resolves-to-moduleCopy head branch name to clipboard
Aug 22, 2016
Merged

allowSyntheticDefaultImports resolves to modules instead of variables#10486
sandersn merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
allowSyntheticDefaultImports-resolves-to-modulemicrosoft/TypeScript:allowSyntheticDefaultImports-resolves-to-moduleCopy head branch name to clipboard

Conversation

@sandersn

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@vladima @mhegazy can you take a look?

@mhegazy

mhegazy commented Aug 22, 2016

Copy link
Copy Markdown
Contributor

👍

@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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.