File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ const transformer = (_: ts.Program) => (context: ts.TransformationContext) => (
52
52
}
53
53
54
54
function fileExists ( s : string ) {
55
- // if has extensions, file must exist
56
- if ( extname ( s ) !== "" ) return existsSync ( s ) ;
57
- // else check for implicit extensions .ts, .dts, etc...
55
+ // check for implicit extensions .ts, .dts, etc...
58
56
for ( const ext of implicitExtensions ) if ( existsSync ( s + ext ) ) return true ;
57
+ // else if has extensions, file must exist
58
+ if ( extname ( s ) !== "" ) return existsSync ( s ) ;
59
59
return false ;
60
60
}
61
61
Original file line number Diff line number Diff line change @@ -7,10 +7,12 @@ import { A } from "@circular/a";
7
7
import * as path from "path" ;
8
8
import * as b from "circular/a" ;
9
9
import * as c from "../circular/a" ;
10
+ import { myNative } from "@utils/utils.native" ;
10
11
11
12
c . A ;
12
13
b . A ;
13
14
path . sep ;
15
+ myNative ( ) ;
14
16
15
17
sum . sum ( 2 , 3 ) ;
16
18
Original file line number Diff line number Diff line change
1
+ export function myNative ( ) { }
You can’t perform that action at this time.
0 commit comments