Skip to content

Commit 564c4af

Browse files
committed
Rollback to polling file watching
1 parent ff78477 commit 564c4af

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
@@ -411,11 +411,6 @@ namespace ts {
411411
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
412412
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
413413
// if the current node.js version is newer than 4, use `fs.watch` instead.
414-
if (isNode4OrLater()) {
415-
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
416-
return _fs.watch(fileName, (eventName: string, relativeFileName: string) => callback(fileName));
417-
}
418-
419414
const watchedFile = watchedFileSet.addFile(fileName, callback);
420415
return {
421416
close: () => watchedFileSet.removeFile(watchedFile)

0 commit comments

Comments
 (0)