Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/internal/watch_mode/files_watcher.js
Co-authored-by: Yagiz Nizipli <yagiz@nizipli.com>
  • Loading branch information
matthieusieben and anonrig authored Mar 11, 2024
commit 906f7c8b2691f7cb37ca97e244f8d5ff16756596
6 changes: 5 additions & 1 deletion lib/internal/watch_mode/files_watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ class FilesWatcher extends EventEmitter {
}

const owners = this.#depencencyOwners.get(trigger);
if (owners) for (const o of owners) this.#debounceOwners.add(o);
if (owners) {
for (const owner of owners) {
this.#debounceOwners.add(owner);
}
}

clearTimeout(this.#debounceTimer);
this.#debounceTimer = setTimeout(() => {
Expand Down