MCPcopy
hub / github.com/webpack/webpack / attachFullHashModules

Method attachFullHashModules

lib/ChunkGraph.js:463–469  ·  view source on GitHub ↗

* Attach full 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

461 * @returns {void}
462 */
463 attachFullHashModules(chunk, modules) {
464 const cgc = this._getChunkGraphChunk(chunk);
465 if (cgc.fullHashModules === undefined) cgc.fullHashModules = new Set();
466 for (const module of modules) {
467 cgc.fullHashModules.add(module);
468 }
469 }
470
471 /**
472 * Attach dependent hash modules.

Callers 1

applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected