forked from swc-project/swc
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/typescript): Correctly handle deep import chains (swc-project#…
…9487) **Related issue:** - Closes swc-project#9486
- Loading branch information
1 parent
1121bc0
commit 50d70d3
Showing
4 changed files
with
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
swc_ecma_transforms_typescript: patch | ||
--- | ||
|
||
fix(es/typescript): Correctly handle deep import chains |
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
crates/swc_ecma_transforms_typescript/tests/fixture/issue-9486/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 { ns1 } from '../anotherFile'; | ||
import ns2 = ns1.ns2; | ||
import Class = ns2.Class; | ||
|
||
const a = new Class(5); |
4 changes: 4 additions & 0 deletions
4
crates/swc_ecma_transforms_typescript/tests/fixture/issue-9486/output.js
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 { ns1 } from '../anotherFile'; | ||
const ns2 = ns1.ns2; | ||
const Class = ns2.Class; | ||
const a = new Class(5); |