Skip to content

Commit

Permalink
Fix bug in build script causing non-JS file changes to be ignored
Browse files Browse the repository at this point in the history
The corresponding file watcher was disconnected as soon as a change in a
non-JS file was registered, because `fs.existsSync` reported the file as
non-existant for a brief moment. Don't disconnect file watcher if file
is not found. I must've introduced this bug at some point.
  • Loading branch information
rnwst committed Jan 16, 2024
1 parent a60b79e commit a078b55
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,6 @@ class FileWatcherContext {
this.#updateFileWatcher();
this.#callback();
}
} else {
this.#abortController.abort();
}
}
/* eslint-enable require-jsdoc */
Expand Down

0 comments on commit a078b55

Please sign in to comment.