On macOS, the fs.watch can be unstable and we use this to run development-mode.
In some cases, a "change" event in one file, was triggering change events for ALL files.
Reworked to use chokidar instead, which is built to support the same watch use-cases for fs.watch, but make its behaviour more stable cross-platform + it also simplifies the logic in these functions.
Fixes # (link to the corresponding issue if applicable)
Description
On macOS, the fs.watch can be unstable and we use this to run development-mode.
In some cases, a "change" event in one file, was triggering change events for ALL files.
Reworked to use chokidar instead, which is built to support the same watch use-cases for fs.watch, but make its behaviour more stable cross-platform + it also simplifies the logic in these functions.
Fixes # (link to the corresponding issue if applicable)
Type of change
New featureBreaking changeChecklist