MCPcopy
hub / github.com/webpack/webpack / getModuleGraphHashBigInt

Method getModuleGraphHashBigInt

lib/ChunkGraph.js:1779–1786  ·  view source on GitHub ↗

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

(module, runtime, withConnections = true)

Source from the content-addressed store, hash-verified

1777 * @returns {bigint} hash
1778 */
1779 getModuleGraphHashBigInt(module, runtime, withConnections = true) {
1780 const cgm = this._getChunkGraphModule(module);
1781 return withConnections
1782 ? BigInt(
1783 `0x${this._getModuleGraphHashWithConnections(cgm, module, runtime)}`
1784 )
1785 : this._getModuleGraphHashBigInt(cgm, module, runtime);
1786 }
1787
1788 /**
1789 * Get module graph hash big int.

Callers

nothing calls this directly

Tested by

no test coverage detected