Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not remove type import used in TS import= (#14913)
* fix: do not remove type import used in TS import= * tweak typing
- Loading branch information
Showing
4 changed files
with
20 additions
and
2 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
5 changes: 5 additions & 0 deletions
5
...sform-typescript/test/fixtures/imports/elide-type-referenced-in-imports-equal-no/input.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import nsa from "./module-a"; | ||
import foo = nsa.bar; | ||
|
||
import nsb from "./module-b"; | ||
import bar = nsb.foo.bar; |
3 changes: 3 additions & 0 deletions
3
...m-typescript/test/fixtures/imports/elide-type-referenced-in-imports-equal-no/options.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["transform-typescript"] | ||
} |
4 changes: 4 additions & 0 deletions
4
...orm-typescript/test/fixtures/imports/elide-type-referenced-in-imports-equal-no/output.mjs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import nsa from "./module-a"; | ||
var foo = nsa.bar; | ||
import nsb from "./module-b"; | ||
var bar = nsb.foo.bar; |