MCPcopy
hub / github.com/webpack/webpack / getAllReferencedChunks

Method getAllReferencedChunks

lib/Chunk.js:717–733  ·  view source on GitHub ↗

* Gets all referenced chunks. * @returns {Chunks} a set of all the referenced chunks (including itself)

()

Source from the content-addressed store, hash-verified

715 * @returns {Chunks} a set of all the referenced chunks (including itself)
716 */
717 getAllReferencedChunks() {
718 /** @type {Queue} */
719 const queue = new Set(this.groupsIterable);
720 /** @type {Chunks} */
721 const chunks = new Set();
722
723 for (const chunkGroup of queue) {
724 for (const chunk of chunkGroup.chunks) {
725 chunks.add(chunk);
726 }
727 for (const child of chunkGroup.childrenIterable) {
728 queue.add(child);
729 }
730 }
731
732 return chunks;
733 }
734
735 /**
736 * Gets all referenced async entrypoints.

Callers 9

sealMethod · 0.80
getChunkModuleIdMapMethod · 0.80
getChunkConditionMapMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected