MCPcopy
hub / github.com/webpack/webpack / hasChunkEntryDependentChunks

Method hasChunkEntryDependentChunks

lib/ChunkGraph.js:1407–1417  ·  lib/ChunkGraph.js::ChunkGraph.hasChunkEntryDependentChunks

* Checks whether this chunk graph contains the chunk. * @param {Chunk} chunk the chunk * @returns {boolean} true, when it has dependent chunks

(chunk)

Source from the content-addressed store, hash-verified

1405 * @returns {boolean} true, when it has dependent chunks
1406 */
1407 hasChunkEntryDependentChunks(chunk) {
1408 const cgc = this._getChunkGraphChunk(chunk);
1409 for (const chunkGroup of cgc.entryModules.values()) {
1410 for (const c of chunkGroup.chunks) {
1411 if (c !== chunk) {
1412 return true;
1413 }
1414 }
1415 }
1416 return false;
1417 }
1418
1419 /**
1420 * Gets chunk runtime modules iterable.

Callers 4

applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
valuesMethod · 0.45

Tested by

no test coverage detected