MCPcopy
hub / github.com/webpack/webpack / addModuleToHash

Method addModuleToHash

lib/ChunkGraph.js:1917–1925  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

1915 * @param {Module} module module
1916 */
1917 const addModuleToHash = (module) => {
1918 hash.update(
1919 this._getModuleGraphHashBigInt(
1920 this._getChunkGraphModule(module),
1921 module,
1922 runtime
1923 ).toString(16)
1924 );
1925 };
1926 /**
1927 * Adds modules to hash.
1928 * @param {Set<Module>} modules modules

Callers

nothing calls this directly

Calls 4

_getChunkGraphModuleMethod · 0.95
updateMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected