MCPcopy
hub / github.com/webpack/webpack / attachDependentHashModules

Method attachDependentHashModules

lib/ChunkGraph.js:477–485  ·  view source on GitHub ↗

* Attach dependent hash modules. * @param {Chunk} chunk the chunk * @param {Iterable<RuntimeModule>} modules the modules that require a full hash * @returns {void}

(chunk, modules)

Source from the content-addressed store, hash-verified

475 * @returns {void}
476 */
477 attachDependentHashModules(chunk, modules) {
478 const cgc = this._getChunkGraphChunk(chunk);
479 if (cgc.dependentHashModules === undefined) {
480 cgc.dependentHashModules = new Set();
481 }
482 for (const module of modules) {
483 cgc.dependentHashModules.add(module);
484 }
485 }
486
487 /**
488 * Processes the provided old module.

Callers 1

applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected