File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class Host implements ts.CompilerHost {
14
14
static getLibDefault ( typescript : typeof ts , libFileName : string ) {
15
15
let fileName : string ;
16
16
for ( const i in require . cache ) {
17
- if ( ! Object . prototype . hasOwnProperty . call ( require . cache , i ) || require . cache [ i ] . exports === undefined ) continue ;
17
+ if ( ! Object . prototype . hasOwnProperty . call ( require . cache , i ) || require . cache [ i ] === undefined ) continue ;
18
18
19
19
if ( require . cache [ i ] . exports === typescript ) {
20
20
fileName = i ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ var Host = (function () {
44
44
Host . getLibDefault = function ( typescript , libFileName ) {
45
45
var fileName ;
46
46
for ( var i in require . cache ) {
47
- if ( ! Object . prototype . hasOwnProperty . call ( require . cache , i ) || require . cache [ i ] . exports === undefined )
47
+ if ( ! Object . prototype . hasOwnProperty . call ( require . cache , i ) || require . cache [ i ] === undefined )
48
48
continue ;
49
49
if ( require . cache [ i ] . exports === typescript ) {
50
50
fileName = i ;
You can’t perform that action at this time.
0 commit comments