MCPcopy
hub / github.com/webpack/webpack / addDependentHashModuleToChunk

Method addDependentHashModuleToChunk

lib/ChunkGraph.js:1218–1224  ·  view source on GitHub ↗

* Adds dependent hash module to chunk. * @param {Chunk} chunk the new chunk * @param {RuntimeModule} module the module that require a full hash * @returns {void}

(chunk, module)

Source from the content-addressed store, hash-verified

1216 * @returns {void}
1217 */
1218 addDependentHashModuleToChunk(chunk, module) {
1219 const cgc = this._getChunkGraphChunk(chunk);
1220 if (cgc.dependentHashModules === undefined) {
1221 cgc.dependentHashModules = new Set();
1222 }
1223 cgc.dependentHashModules.add(module);
1224 }
1225
1226 /**
1227 * Disconnects chunk and entry module.

Callers 1

addRuntimeModuleMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected