MCPcopy
hub / github.com/webpack/webpack / split

Method split

lib/Chunk.js:617–626  ·  lib/Chunk.js::Chunk.split

* Processes the provided new chunk. * @param {Chunk} newChunk the new chunk that will be split out of * @returns {void}

(newChunk)

Source from the content-addressed store, hash-verified

615 * @returns {void}
616 */
617 split(newChunk) {
618 for (const chunkGroup of this._groups) {
619 chunkGroup.insertChunk(newChunk, this);
620 newChunk.addGroup(chunkGroup);
621 }
622 for (const idHint of this.idNameHints) {
623 newChunk.idNameHints.add(idHint);
624 }
625 newChunk.runtime = mergeRuntime(newChunk.runtime, this.runtime);
626 }
627
628 /**
629 * Updates the hash with the data contributed by this instance.

Callers 15

applyDefineKeyMethod · 0.80
applyObjectDefineMethod · 0.80
getSchemaPartFunction · 0.80
getObjectAndPropertyFunction · 0.80
handlerMethod · 0.80
expandValueFunction · 0.80
getLoggerMethod · 0.80
createMethod · 0.80
cutOffByFlagFunction · 0.80

Calls 4

mergeRuntimeFunction · 0.85
insertChunkMethod · 0.80
addGroupMethod · 0.80
addMethod · 0.45

Tested by 1

getLogsFunction · 0.64