Skip to content

Commit 9df6f71

Browse files
committed
Re-enable realpathSync.native for case-insensitive file systems
1 parent 6ce7989 commit 9df6f71

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
@@ -1279,7 +1279,7 @@ namespace ts {
12791279

12801280
const platform: string = _os.platform();
12811281
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
1282-
const realpathSync = useCaseSensitiveFileNames ? (_fs.realpathSync.native ?? _fs.realpathSync) : _fs.realpathSync;
1282+
const realpathSync = _fs.realpathSync.native ?? _fs.realpathSync;
12831283

12841284
const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
12851285
const getCurrentDirectory = memoize(() => process.cwd());

0 commit comments

Comments
 (0)