File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,15 @@ export async function createTsAnalysis(
85
85
return {
86
86
visitor : {
87
87
ExportAllDeclaration ( path ) {
88
- imports . add ( path . node . source . value ) ;
88
+ if ( path . node . exportKind !== 'type' )
89
+ imports . add ( path . node . source . value ) ;
89
90
} ,
90
91
ExportNamedDeclaration ( path ) {
91
92
if ( path . node . source ) imports . add ( path . node . source . value ) ;
92
93
} ,
93
94
ImportDeclaration ( path ) {
94
- imports . add ( path . node . source . value ) ;
95
+ if ( path . node . exportKind !== 'type' )
96
+ imports . add ( path . node . source . value ) ;
95
97
} ,
96
98
Import ( path ) {
97
99
dynamicImports . add (
Original file line number Diff line number Diff line change
1
+ import type { t } from './types.ts' ;
1
2
import "./dep.ts" ;
2
- export var p : number = 5 ;
3
+ export var p : t = 5 ;
Original file line number Diff line number Diff line change
1
+ // should not be traced!
2
+ import 'jquery' ;
3
+
4
+ export type t = number ;
You can’t perform that action at this time.
0 commit comments