We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fileName
1 parent b5bc597 commit 63bf8a6Copy full SHA for 63bf8a6
lib/internal/watch_mode/files_watcher.js
@@ -98,7 +98,7 @@ class FilesWatcher extends EventEmitter {
98
}
99
const watcher = watch(path, { recursive, signal: this.#signal });
100
watcher.on('change', (eventType, fileName) => this
101
- .#onChange(recursive ? resolve(path, fileName) : path));
+ .#onChange(recursive ? resolve(path, fileName ?? '') : path));
102
this.#watchers.set(path, { handle: watcher, recursive });
103
if (recursive) {
104
this.#removeWatchedChildren(path);
0 commit comments