MCPcopy
hub / github.com/webpack/webpack / assignRuntimeIds

Method assignRuntimeIds

lib/Compilation.js:4668–4685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

sealMethod · 0.95

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected