MCPcopy
hub / github.com/webpack/webpack / addModulesToHash

Method addModulesToHash

lib/ChunkGraph.js:1930–1940  ·  view source on GitHub ↗
(modules)

Source from the content-addressed store, hash-verified

1928 * @param {Set<Module>} modules modules
1929 */
1930 const addModulesToHash = (modules) => {
1931 let xor = ZERO_BIG_INT;
1932 for (const m of modules) {
1933 xor ^= this._getModuleGraphHashBigInt(
1934 this._getChunkGraphModule(m),
1935 m,
1936 runtime
1937 );
1938 }
1939 hash.update(xor.toString(16));
1940 };
1941 if (activeNamespaceModules.size === 1) {
1942 addModuleToHash(
1943 /** @type {Module} */ (activeNamespaceModules.values().next().value)

Callers

nothing calls this directly

Calls 4

_getChunkGraphModuleMethod · 0.95
updateMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected