Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -50,11 +50,13 @@ class Stats {
}
hasWarnings() {
return this.compilation.warnings.length > 0;
return this.compilation.warnings.length > 0 ||
this.compilation.children.some(child => child.getStats().hasWarnings());
}
hasErrors() {
return this.compilation.errors.length > 0;
return this.compilation.errors.length > 0 ||
this.compilation.children.some(child => child.getStats().hasErrors());
}
// remove a prefixed "!" that can be specified to reverse sort order