We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ca5a3d + 5448bff commit 9ed7758Copy full SHA for 9ed7758
1 file changed
javascript/extractor/lib/typescript/src/main.ts
@@ -296,7 +296,7 @@ function handleOpenProjectCommand(command: OpenProjectCommand) {
296
|| redirectNodeModulesPath(path) != null;
297
},
298
readFile: (path: string) => {
299
- if (!fs.existsSync(path)) {
+ if (!ts.sys.fileExists(path)) {
300
let virtualPath = virtualSourceRoot.toVirtualPathIfFileExists(path);
301
if (virtualPath != null) return ts.sys.readFile(virtualPath);
302
virtualPath = redirectNodeModulesPath(path);
0 commit comments