diff --git a/core/local/chokidar/watcher.js b/core/local/chokidar/watcher.js index fe6f914d7..545bb6435 100644 --- a/core/local/chokidar/watcher.js +++ b/core/local/chokidar/watcher.js @@ -227,10 +227,6 @@ class LocalWatcher { async resume() { log.info('Resuming watcher...') - if (this.watcher && this.watcher.getWatched().length === 0) { - this.watcher.add('.') - } - // Flush previously buffered events this.buffer.flush() // Restart flushes loop @@ -242,11 +238,6 @@ class LocalWatcher { // Stop flushes loop but keep buffered events this.buffer.switchMode('idle') - - // Stop underlying Chokidar watcher - if (this.watcher) { - this.watcher.unwatch('.') - } } async stop(force /*: ?bool */ = false) {