MCPcopy
hub / github.com/webpack/webpack / hasModuleHashes

Method hasModuleHashes

lib/ChunkGraph.js:1611–1615  ·  view source on GitHub ↗

* Checks whether this chunk graph contains the module. * @param {Module} module the module * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, if the module has hashes for this runtime

(module, runtime)

Source from the content-addressed store, hash-verified

1609 * @returns {boolean} true, if the module has hashes for this runtime
1610 */
1611 hasModuleHashes(module, runtime) {
1612 const cgm = this._getChunkGraphModule(module);
1613 const hashes = /** @type {RuntimeSpecMap<ModuleHashInfo>} */ (cgm.hashes);
1614 return hashes && hashes.has(runtime);
1615 }
1616
1617 /**
1618 * Returns hash.

Callers 1

processChunkMethod · 0.80

Calls 2

_getChunkGraphModuleMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected