* Checks whether this chunk graph contains the chunk. * @param {Chunk} chunk the chunk * @returns {boolean} true, when it has dependent chunks
(chunk)
| 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. |