File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 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) => (
5252 }
5353
5454 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...
5856 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 ) ;
5959 return false ;
6060 }
6161
Original file line number Diff line number Diff line change @@ -7,10 +7,12 @@ import { A } from "@circular/a";
77import * as path from "path" ;
88import * as b from "circular/a" ;
99import * as c from "../circular/a" ;
10+ import { myNative } from "@utils/utils.native" ;
1011
1112c . A ;
1213b . A ;
1314path . sep ;
15+ myNative ( ) ;
1416
1517sum . sum ( 2 , 3 ) ;
1618
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