We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff78477 commit 564c4afCopy full SHA for 564c4af
src/compiler/sys.ts
@@ -411,11 +411,6 @@ namespace ts {
411
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
412
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
413
// 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
-
419
const watchedFile = watchedFileSet.addFile(fileName, callback);
420
return {
421
close: () => watchedFileSet.removeFile(watchedFile)
0 commit comments