Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle
export { type foo }
as inType (#15494)
- Loading branch information
1 parent
216bed0
commit 9e67898
Showing
6 changed files
with
23 additions
and
1 deletion.
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
4 changes: 4 additions & 0 deletions
4
...l-plugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-1/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,4 @@ | ||
import { foo, bar, type baz } from "Foo"; | ||
export { type foo }; | ||
export type { bar }; | ||
export { baz }; |
1 change: 1 addition & 0 deletions
1
...plugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-1/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 @@ | ||
export {}; |
4 changes: 4 additions & 0 deletions
4
...l-plugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-2/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,4 @@ | ||
import { foo, bar, type baz } from "Foo"; | ||
export { type foo }; | ||
export type { bar }; | ||
export { baz }; |
8 changes: 8 additions & 0 deletions
8
...ugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-2/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,8 @@ | ||
{ | ||
"plugins": [[ | ||
"transform-typescript", | ||
{ | ||
"onlyRemoveTypeImports": true | ||
} | ||
]] | ||
} |
2 changes: 2 additions & 0 deletions
2
...plugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-2/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,2 @@ | ||
import { foo, bar } from "Foo"; | ||
export {}; |