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.
2 parents ff78477 + 564c4af commit 8c6105fCopy full SHA for 8c6105f
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