Skip to content

Commit c65e6b6

Browse files
committed
Implement realpath, fix #349
1 parent 2e9f8d8 commit c65e6b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/host.ts

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export class Host implements ts.CompilerHost {
4646

4747
this.externalResolve = externalResolve;
4848
this.libFileName = libFileName;
49+
50+
this.realpath = typescript.createCompilerHost({})['realpath'];
4951

5052
this.reset();
5153
}
@@ -150,4 +152,6 @@ export class Host implements ts.CompilerHost {
150152
if (sourceFile) return sourceFile.ts;
151153
}
152154
}
155+
156+
realpath: any;
153157
}

0 commit comments

Comments
 (0)