MCPcopy
hub / github.com/webpack/webpack / getAllInitialChunks

Method getAllInitialChunks

lib/Chunk.js:699–711  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

697 * @returns {Chunks} a set of all the initial chunks (including itself)
698 */
699 getAllInitialChunks() {
700 /** @type {Chunks} */
701 const chunks = new Set();
702 /** @type {Queue} */
703 const queue = new Set(this.groupsIterable);
704 for (const group of queue) {
705 if (group.isInitial()) {
706 for (const c of group.chunks) chunks.add(c);
707 for (const g of group.childrenIterable) queue.add(g);
708 }
709 }
710 return chunks;
711 }
712
713 /**
714 * Gets all referenced chunks.

Callers 3

generateMethod · 0.80
StartupHelpers.jsFile · 0.80
generateMethod · 0.80

Calls 2

isInitialMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected