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

Method addWarning

lib/Module.js:762–767  ·  view source on GitHub ↗

* Adds the provided warning to the module. * @param {Error} warning the warning * @returns {void}

(warning)

Source from the content-addressed store, hash-verified

760 * @returns {void}
761 */
762 addWarning(warning) {
763 if (this._warnings === undefined) {
764 this._warnings = [];
765 }
766 this._warnings.push(warning);
767 }
768
769 /**
770 * Returns list of warnings if any.

Callers 5

globalHandlerMethod · 0.45
_createLoaderContextMethod · 0.45
_doBuildMethod · 0.45
handleBuildDoneMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected