Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jun 25, 2018

Fixes the error from #25199

@ghost ghost force-pushed the rmDefaultImport branch from 13b43b9 to cc0cb19 Compare June 25, 2018 18:35
@ghost ghost requested a review from amcasey June 25, 2018 18:35
@ghost ghost merged commit 0b5b7ef into master Jun 25, 2018
@ghost ghost deleted the rmDefaultImport branch June 25, 2018 19:41
Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

else if (namedBindings.kind === SyntaxKind.NamespaceImport) {
// `import foo, * as a from "./a";` --> `import * as a from ".a/"; import { foo } from "./a";`
changes.deleteNode(importingSourceFile, ref);
changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably, this will also clobber trivia.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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