MCPcopy
hub / github.com/webpack/webpack / hasErrors

Method hasErrors

lib/Stats.js:50–55  ·  lib/Stats.js::Stats.hasErrors

* Checks whether this stats has errors. * @returns {boolean} true if the compilation encountered an error

()

Source from the content-addressed store, hash-verified

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.

Callers 12

applyMethod · 0.45
compileFunction · 0.45
runWebpackFunction · 0.45
registerSuiteFunction · 0.45
beforeAllFunction · 0.45
Examples.test.jsFile · 0.45
runFunction · 0.45
Watch.test.jsFile · 0.45
runFunction · 0.45

Calls 1

getStatsMethod · 0.80

Tested by 2

compileFunction · 0.36
runFunction · 0.36