MCPcopy
hub / github.com/webpack/webpack / addWarning

Method addWarning

lib/MultiCompiler.js:158–162  ·  view source on GitHub ↗
(compiler, warning)

Source from the content-addressed store, hash-verified

156 * @param {WebpackError} warning warning
157 */
158 const addWarning = (compiler, warning) => {
159 compiler.hooks.thisCompilation.tap(CLASS_NAME, (compilation) => {
160 compilation.warnings.push(warning);
161 });
162 };
163 /** @type {Set<string>} */
164 const cacheNames = new Set();
165 for (const compiler of this.compilers) {

Callers

nothing calls this directly

Calls 2

tapMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected