MCPcopy
hub / github.com/webpack/webpack / attachModules

Method attachModules

lib/ChunkGraph.js:437–442  ·  view source on GitHub ↗

* Processes the provided chunk. * @param {Chunk} chunk the chunk * @param {Iterable<Module>} modules the modules * @returns {void}

(chunk, modules)

Source from the content-addressed store, hash-verified

435 * @returns {void}
436 */
437 attachModules(chunk, modules) {
438 const cgc = this._getChunkGraphChunk(chunk);
439 for (const module of modules) {
440 cgc.modules.add(module);
441 }
442 }
443
444 /**
445 * Attach runtime modules.

Callers 1

applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected