MCPcopy
hub / github.com/webpack/webpack / getModuleHash

Method getModuleHash

lib/ChunkGraph.js:1623–1627  ·  view source on GitHub ↗

* Returns hash. * @param {Module} module the module * @param {RuntimeSpec} runtime the runtime * @returns {string} hash

(module, runtime)

Source from the content-addressed store, hash-verified

1621 * @returns {string} hash
1622 */
1623 getModuleHash(module, runtime) {
1624 const cgm = this._getChunkGraphModule(module);
1625 const hashes = /** @type {RuntimeSpecMap<ModuleHashInfo>} */ (cgm.hashes);
1626 return this._getModuleHashInfo(module, hashes, runtime).hash;
1627 }
1628
1629 /**
1630 * Gets rendered module hash.

Callers 11

applyMethod · 0.45
hashMethod · 0.45
codeGenerationMethod · 0.45
createHashMethod · 0.45
codeGenMethod · 0.45
updateHashMethod · 0.45
interpolateFunction · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45

Calls 2

_getChunkGraphModuleMethod · 0.95
_getModuleHashInfoMethod · 0.95

Tested by

no test coverage detected