| 4666 | } |
| 4667 | |
| 4668 | assignRuntimeIds() { |
| 4669 | const { chunkGraph } = this; |
| 4670 | /** |
| 4671 | * Process entrypoint. |
| 4672 | * @param {Entrypoint} ep an entrypoint |
| 4673 | */ |
| 4674 | const processEntrypoint = (ep) => { |
| 4675 | const runtime = /** @type {string} */ (ep.options.runtime || ep.name); |
| 4676 | const chunk = /** @type {Chunk} */ (ep.getRuntimeChunk()); |
| 4677 | chunkGraph.setRuntimeId(runtime, /** @type {ChunkId} */ (chunk.id)); |
| 4678 | }; |
| 4679 | for (const ep of this.entrypoints.values()) { |
| 4680 | processEntrypoint(ep); |
| 4681 | } |
| 4682 | for (const ep of this.asyncEntrypoints) { |
| 4683 | processEntrypoint(ep); |
| 4684 | } |
| 4685 | } |
| 4686 | |
| 4687 | sortItemsWithChunkIds() { |
| 4688 | for (const chunkGroup of this.chunkGroups) { |