MCPcopy
hub / github.com/webpack/webpack / getAllReferencedAsyncEntrypoints

Method getAllReferencedAsyncEntrypoints

lib/Chunk.js:739–755  ·  view source on GitHub ↗

* Gets all referenced async entrypoints. * @returns {Entrypoints} a set of all the referenced entrypoints

()

Source from the content-addressed store, hash-verified

737 * @returns {Entrypoints} a set of all the referenced entrypoints
738 */
739 getAllReferencedAsyncEntrypoints() {
740 /** @type {Queue} */
741 const queue = new Set(this.groupsIterable);
742 /** @type {Entrypoints} */
743 const entrypoints = new Set();
744
745 for (const chunkGroup of queue) {
746 for (const entrypoint of chunkGroup.asyncEntrypointsIterable) {
747 entrypoints.add(/** @type {Entrypoint} */ (entrypoint));
748 }
749 for (const child of chunkGroup.childrenIterable) {
750 queue.add(child);
751 }
752 }
753
754 return entrypoints;
755 }
756
757 /**
758 * Checks whether this chunk has async chunks.

Callers 2

createHashMethod · 0.80
generateMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected