[transform-typescript] Fix import elision for type exports (#12122)
This commit is contained in:
parent
e0b2bfb78f
commit
7ad9917793
@ -13,6 +13,8 @@ function isInType(path) {
|
||||
case "TSExpressionWithTypeArguments":
|
||||
case "TSTypeQuery":
|
||||
return true;
|
||||
case "ExportSpecifier":
|
||||
return path.parentPath.parent.exportKind === "type";
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
import {A, T} from './mod';
|
||||
A;
|
||||
import B, {T1} from './mod';
|
||||
B;
|
||||
export type {T, T1};
|
||||
@ -0,0 +1,4 @@
|
||||
import { A } from './mod';
|
||||
A;
|
||||
import B from './mod';
|
||||
B;
|
||||
Loading…
x
Reference in New Issue
Block a user