-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Default aliasing bug fix #4829
Default aliasing bug fix #4829
Conversation
@DanielRosenwasser you wanna check this over before merging it? |
👍 |
var name = (<ImportSpecifier>declaration).propertyName || (<ImportSpecifier>declaration).name; | ||
var identifier = getSourceTextOfNodeFromSourceFile(currentSourceFile, name); | ||
if (languageVersion == ScriptTarget.ES3 && identifier === "default") { | ||
write(`["default"]`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use single quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that would fail the linter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On that note, we should consider merging #4458 at some point.
👍 |
Fixes #4827