We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 463160b commit e69c83dCopy full SHA for e69c83d
1 file changed
src/Bundler.js
@@ -153,7 +153,12 @@ class Bundler extends EventEmitter {
153
this.farm = WorkerFarm.getShared(this.options);
154
155
if (this.options.watch) {
156
- this.watcher = new FSWatcher;
+ // FS events on macOS are flakey in the tests, which write lots of files very quickly
157
+ // See https://github.com/paulmillr/chokidar/issues/612
158
+ this.watcher = new FSWatcher({
159
+ useFsEvents: process.env.NODE_ENV !== 'test'
160
+ });
161
+
162
this.watcher.on('change', this.onChange.bind(this));
163
}
164
0 commit comments