Skip to content

Commit 064b19d

Browse files
committed
Don't use _fs.realpathSync.native on windows, a semi-revert of #41292
1 parent 822cb3a commit 064b19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ namespace ts {
11861186
let activeSession: import("inspector").Session | "stopping" | undefined;
11871187
let profilePath = "./profile.cpuprofile";
11881188

1189-
const realpathSync = _fs.realpathSync.native ?? _fs.realpathSync;
1189+
const realpathSync = process.platform !== "win32" ? _fs.realpathSync.native : _fs.realpathSync;
11901190

11911191
const Buffer: {
11921192
new (input: string, encoding?: string): any;

0 commit comments

Comments
 (0)