MCPcopy
hub / github.com/webpack/webpack / hasWarnings

Method hasWarnings

lib/Stats.js:39–44  ·  view source on GitHub ↗

* Checks whether this stats has warnings. * @returns {boolean} true if the compilation had a warning

()

Source from the content-addressed store, hash-verified

37 * @returns {boolean} true if the compilation had a warning
38 */
39 hasWarnings() {
40 return (
41 this.compilation.getWarnings().length > 0 ||
42 this.compilation.children.some((child) => child.getStats().hasWarnings())
43 );
44 }
45
46 /**
47 * Checks whether this stats has errors.

Callers 5

runWebpackFunction · 0.45
registerSuiteFunction · 0.45
beforeAllFunction · 0.45
Stats.test.jsFile · 0.45

Calls 2

getStatsMethod · 0.80
getWarningsMethod · 0.45

Tested by

no test coverage detected