Skip to content

Commit

Permalink
Re-enable realpathSync.native for case-insensitive file systems
Browse files Browse the repository at this point in the history
  • Loading branch information
amcasey committed Jul 9, 2021
1 parent 1c30bb4 commit 4c4dbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ namespace ts {

const platform: string = _os.platform();
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
const realpathSync = useCaseSensitiveFileNames ? (_fs.realpathSync.native ?? _fs.realpathSync) : _fs.realpathSync;
const realpathSync = _fs.realpathSync.native ?? _fs.realpathSync;

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

0 comments on commit 4c4dbdd

Please sign in to comment.