-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parse failure in TS when default-importing the name "type" (#722)
The token `from` is actually a `tt.name`, so we can use our existing lookahead to distinguish that case. The line `import type from from './foo';` is invalid, so we know that `from` after `type` is always a true `from` token, meaning that `type` is just the imported name. Also add a TODO comment to the babel test checker with a little more thoughts on how to approach the remaining flagged issues.
- Loading branch information
1 parent
f9aeb43
commit 66da4d1
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters