From 064b19d43f016478cfba4c6f6d2c9f4d9022b33c Mon Sep 17 00:00:00 2001 From: Orta Date: Tue, 23 Mar 2021 12:50:40 +0000 Subject: [PATCH] Don't use _fs.realpathSync.native on windows, a semi-revert of #41292 --- src/compiler/sys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 5dc4fbe91cc35..0c612228de0e6 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1186,7 +1186,7 @@ namespace ts { let activeSession: import("inspector").Session | "stopping" | undefined; let profilePath = "./profile.cpuprofile"; - const realpathSync = _fs.realpathSync.native ?? _fs.realpathSync; + const realpathSync = process.platform !== "win32" ? _fs.realpathSync.native : _fs.realpathSync; const Buffer: { new (input: string, encoding?: string): any;