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 1aee5e1 + 64cd995 commit 5192bc5Copy full SHA for 5192bc5
src/compiler/sys.ts
@@ -392,11 +392,6 @@ namespace ts {
392
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
393
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
394
// 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
-
400
let watchedFile = watchedFileSet.addFile(fileName, callback);
401
return {
402
close: () => watchedFileSet.removeFile(watchedFile)
0 commit comments