From 1dafe934b0c7ce74a2105849fb58682443d04a71 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 17 Jun 2018 13:01:51 -0400 Subject: [PATCH] initialise rebuild stats --- src/api/dev.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/dev.ts b/src/api/dev.ts index 7f87781..68b677e 100644 --- a/src/api/dev.ts +++ b/src/api/dev.ts @@ -250,8 +250,8 @@ class Watcher extends EventEmitter { this.restarting = true; this.current_build = { - changed: new Set(), - rebuilding: new Set(), + changed: new Set([filename]), + rebuilding: new Set([type]), unique_warnings: new Set(), unique_errors: new Set() };