MCPcopy
hub / github.com/webpack/webpack / addExtraReason

Method addExtraReason

lib/ModuleGraph.js:529–532  ·  view source on GitHub ↗

* Adds the provided module to the module graph. * @param {Module} module the referenced module * @param {string} explanation an explanation why it's referenced * @returns {void}

(module, explanation)

Source from the content-addressed store, hash-verified

527 * @returns {void}
528 */
529 addExtraReason(module, explanation) {
530 const connections = this._getModuleGraphModule(module).incomingConnections;
531 connections.add(new ModuleGraphConnection(null, null, module, explanation));
532 }
533
534 /**
535 * Gets resolved module.

Callers 5

applyMethod · 0.80
applyMethod · 0.80
finishEntryModuleMethod · 0.80
finishEntryModuleMethod · 0.80
finishEntryModuleMethod · 0.80

Calls 2

_getModuleGraphModuleMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected