MCPcopy
hub / github.com/webpack/webpack / setModuleHashes

Method setModuleHashes

lib/ChunkGraph.js:1649–1655  ·  view source on GitHub ↗

* Sets module hashes. * @param {Module} module the module * @param {RuntimeSpec} runtime the runtime * @param {string} hash the full hash * @param {string} renderedHash the shortened hash for rendering * @returns {void}

(module, runtime, hash, renderedHash)

Source from the content-addressed store, hash-verified

1647 * @returns {void}
1648 */
1649 setModuleHashes(module, runtime, hash, renderedHash) {
1650 const cgm = this._getChunkGraphModule(module);
1651 if (cgm.hashes === undefined) {
1652 cgm.hashes = new RuntimeSpecMap();
1653 }
1654 cgm.hashes.set(runtime, new ModuleHashInfo(hash, renderedHash));
1655 }
1656
1657 /**
1658 * Adds module runtime requirements.

Callers 3

createModuleHashesMethod · 0.80
_createModuleHashMethod · 0.80
createHashMethod · 0.80

Calls 2

_getChunkGraphModuleMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected