diff --git a/lib/builder/builder.js b/lib/builder/builder.js index 1fcb834c59..751a8a7e7b 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -389,7 +389,7 @@ export default class Builder extends Tapable { ignoreInitial: true }) /* istanbul ignore next */ - const refreshFiles = _.debounce(this.generateRoutesAndFiles, 200) + const refreshFiles = _.debounce(() => this.generateRoutesAndFiles(), 200) // Watch for src Files let filesWatcher = chokidar.watch(patterns, options)