chore: reorder statement
This commit is contained in:
parent
bf9ae831bd
commit
8131088db7
|
@ -313,6 +313,7 @@ class Watching {
|
|||
const finalCallback = (err, compilation) => {
|
||||
this.running = false;
|
||||
this.compiler.running = false;
|
||||
this.compiler.watching = undefined;
|
||||
this.compiler.watchMode = false;
|
||||
this.compiler.modifiedFiles = undefined;
|
||||
this.compiler.removedFiles = undefined;
|
||||
|
@ -321,7 +322,6 @@ class Watching {
|
|||
const shutdown = () => {
|
||||
this.compiler.cache.shutdown(err => {
|
||||
this.compiler.hooks.watchClose.call();
|
||||
this.compiler.watching = undefined;
|
||||
const closeCallbacks = this._closeCallbacks;
|
||||
this._closeCallbacks = undefined;
|
||||
for (const cb of closeCallbacks) cb(err);
|
||||
|
|
Loading…
Reference in New Issue