MCPcopy
hub / github.com/webpack/webpack / setIssuerIfUnset

Method setIssuerIfUnset

lib/ModuleGraph.js:702–705  ·  view source on GitHub ↗

* Sets issuer if unset. * @param {Module} module the module * @param {Module | null} issuer the issuer module * @returns {void}

(module, issuer)

Source from the content-addressed store, hash-verified

700 * @returns {void}
701 */
702 setIssuerIfUnset(module, issuer) {
703 const mgm = this._getModuleGraphModule(module);
704 if (mgm.issuer === undefined) mgm.issuer = issuer;
705 }
706
707 /**
708 * Gets optimization bailout.

Callers 2

handleModuleCreationMethod · 0.80

Calls 1

_getModuleGraphModuleMethod · 0.95

Tested by

no test coverage detected