MCPcopy
hub / github.com/webpack/webpack / attachRuntimeModules

Method attachRuntimeModules

lib/ChunkGraph.js:450–455  ·  view source on GitHub ↗

* Attach runtime modules. * @param {Chunk} chunk the chunk * @param {Iterable<RuntimeModule>} modules the runtime modules * @returns {void}

(chunk, modules)

Source from the content-addressed store, hash-verified

448 * @returns {void}
449 */
450 attachRuntimeModules(chunk, modules) {
451 const cgc = this._getChunkGraphChunk(chunk);
452 for (const module of modules) {
453 cgc.runtimeModules.add(module);
454 }
455 }
456
457 /**
458 * Attach full hash modules.

Callers 1

applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected