MCPcopy
hub / github.com/webpack/webpack / markModuleAsErrored

Method markModuleAsErrored

lib/NormalModule.js:1689–1694  ·  view source on GitHub ↗

* @param {Error} error the error * @returns {void}

(error)

Source from the content-addressed store, hash-verified

1687 * @returns {void}
1688 */
1689 markModuleAsErrored(error) {
1690 // Restore build meta from successful build to keep importing state
1691 this.buildMeta = { ...this._lastSuccessfulBuildMeta };
1692 this.error = error;
1693 this.addError(error);
1694 }
1695
1696 /**
1697 * @param {Exclude<NoParse, EXPECTED_ANY[]>} rule rule

Callers 3

buildMethod · 0.95
handleParseErrorMethod · 0.95
handleBuildDoneMethod · 0.95

Calls 1

addErrorMethod · 0.80

Tested by

no test coverage detected