MCPcopy
hub / github.com/webpack/webpack / getModuleGraphHash

Method getModuleGraphHash

lib/ChunkGraph.js:1765–1770  ·  view source on GitHub ↗

* Gets module graph hash. * @param {Module} module the module * @param {RuntimeSpec} runtime the runtime * @param {boolean} withConnections include connections * @returns {string} hash

(module, runtime, withConnections = true)

Source from the content-addressed store, hash-verified

1763 * @returns {string} hash
1764 */
1765 getModuleGraphHash(module, runtime, withConnections = true) {
1766 const cgm = this._getChunkGraphModule(module);
1767 return withConnections
1768 ? this._getModuleGraphHashWithConnections(cgm, module, runtime)
1769 : this._getModuleGraphHashBigInt(cgm, module, runtime).toString(16);
1770 }
1771
1772 /**
1773 * Gets module graph hash big int.

Callers 1

updateHashMethod · 0.80

Calls 4

_getChunkGraphModuleMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected