internal/fs/recursive_watch.js uses watchFile which depends on polling with 5007ms intervals. Replacing watchFile functionality with FSWatcher from lib/internal/fs/watchers.js would improve the stability of the recursive watch functionality, and will provide better performance.
internal/fs/recursive_watch.js
useswatchFile
which depends on polling with 5007ms intervals. ReplacingwatchFile
functionality withFSWatcher
fromlib/internal/fs/watchers.js
would improve the stability of the recursive watch functionality, and will provide better performance.