MCPcopy
hub / github.com/webpack/webpack / setProfile

Method setProfile

lib/ModuleGraph.js:670–673  ·  view source on GitHub ↗

* Updates profile using the provided module. * @param {Module} module the module * @param {ModuleProfile | undefined} profile the module profile * @returns {void}

(module, profile)

Source from the content-addressed store, hash-verified

668 * @returns {void}
669 */
670 setProfile(module, profile) {
671 const mgm = this._getModuleGraphModule(module);
672 mgm.profile = profile;
673 }
674
675 /**
676 * Returns the issuer module.

Callers 2

profileMethod · 0.80
handleModuleCreationMethod · 0.80

Calls 1

_getModuleGraphModuleMethod · 0.95

Tested by

no test coverage detected