* 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)
| 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. |
no test coverage detected