MCPcopy
hub / github.com/webpack/webpack / getRenderedModuleHash

Method getRenderedModuleHash

lib/ChunkGraph.js:1635–1639  ·  view source on GitHub ↗

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

(module, runtime)

Source from the content-addressed store, hash-verified

1633 * @returns {string} hash
1634 */
1635 getRenderedModuleHash(module, runtime) {
1636 const cgm = this._getChunkGraphModule(module);
1637 const hashes = /** @type {RuntimeSpecMap<ModuleHashInfo>} */ (cgm.hashes);
1638 return this._getModuleHashInfo(module, hashes, runtime).renderedHash;
1639 }
1640
1641 /**
1642 * Sets module hashes.

Callers 6

renderedHashMethod · 0.80
getChunkModuleMapsMethod · 0.80
interpolateFunction · 0.80
generateMethod · 0.80
_generateSourcePhaseMethod · 0.80

Calls 2

_getChunkGraphModuleMethod · 0.95
_getModuleHashInfoMethod · 0.95

Tested by

no test coverage detected