* Checks whether this stats has errors. * @returns {boolean} true if the compilation encountered an error
()
| 48 | * @returns {boolean} true if the compilation encountered an error |
| 49 | */ |
| 50 | hasErrors() { |
| 51 | return ( |
| 52 | this.compilation.errors.length > 0 || |
| 53 | this.compilation.children.some((child) => child.getStats().hasErrors()) |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Returns json output. |