From 041d5c37a05b2b31a05fa72254a7f34bc52630a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 20 Jun 2017 00:34:50 +0200 Subject: [PATCH] Fix path undefined when refreshing files --- lib/builder/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)