initialise rebuild stats

This commit is contained in:
Rich Harris
2018-06-17 13:01:51 -04:00
parent 8f3454c3b1
commit 1dafe934b0

View File

@@ -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()
};