MCPcopy
hub / github.com/webpack/webpack / addExplanation

Method addExplanation

lib/ModuleGraph.js:404–409  ·  view source on GitHub ↗

* Adds the provided dependency to the module graph. * @param {Dependency} dependency the referencing dependency * @param {string} explanation an explanation * @returns {void}

(dependency, explanation)

Source from the content-addressed store, hash-verified

402 * @returns {void}
403 */
404 addExplanation(dependency, explanation) {
405 const connection =
406 /** @type {ModuleGraphConnection} */
407 (this.getConnection(dependency));
408 connection.addExplanation(explanation);
409 }
410
411 /**
412 * Clones module attributes.

Callers 1

Calls 1

getConnectionMethod · 0.95

Tested by

no test coverage detected