MCPcopy
hub / github.com/webpack/webpack / getRuntimeChunk

Method getRuntimeChunk

lib/Entrypoint.js:68–74  ·  view source on GitHub ↗

* Fetches the chunk reference containing the webpack bootstrap code * @returns {Chunk | null} returns the runtime chunk or null if there is none

()

Source from the content-addressed store, hash-verified

66 * @returns {Chunk | null} returns the runtime chunk or null if there is none
67 */
68 getRuntimeChunk() {
69 if (this._runtimeChunk) return this._runtimeChunk;
70 for (const parent of this.parentsIterable) {
71 if (parent instanceof Entrypoint) return parent.getRuntimeChunk();
72 }
73 return null;
74 }
75
76 /**
77 * Sets the chunk with the entrypoint modules for an entrypoint.

Callers 7

_getChunkGraphEntriesMethod · 0.80
processEntrypointMethod · 0.80
hasRuntimeMethod · 0.80
getChunkInfoFunction · 0.80
StartupHelpers.jsFile · 0.80
walkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected