Skip to content

Commit 64cd995

Browse files
committed
Rollback to polling file watching
1 parent 1aee5e1 commit 64cd995

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/sys.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,6 @@ namespace ts {
392392
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
393393
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
394394
// if the current node.js version is newer than 4, use `fs.watch` instead.
395-
if (isNode4OrLater()) {
396-
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
397-
return _fs.watch(fileName, (eventName: string, relativeFileName: string) => callback(fileName));
398-
}
399-
400395
let watchedFile = watchedFileSet.addFile(fileName, callback);
401396
return {
402397
close: () => watchedFileSet.removeFile(watchedFile)

0 commit comments

Comments
 (0)