MCPcopy
hub / github.com/webpack/webpack / hasRuntime

Method hasRuntime

lib/Chunk.js:510–520  ·  view source on GitHub ↗

* Checks whether this chunk has runtime. * @returns {boolean} whether or not the Chunk will have a runtime

()

Source from the content-addressed store, hash-verified

508 * @returns {boolean} whether or not the Chunk will have a runtime
509 */
510 hasRuntime() {
511 for (const chunkGroup of this._groups) {
512 if (
513 chunkGroup instanceof Entrypoint &&
514 chunkGroup.getRuntimeChunk() === this
515 ) {
516 return true;
517 }
518 }
519 return false;
520 }
521
522 /**
523 * Checks whether it can be initial.

Callers 15

blockPromiseMethod · 0.80
createHashMethod · 0.80
constructorMethod · 0.80
canChunksBeIntegratedMethod · 0.80
constructorMethod · 0.80
renderMethod · 0.80
cleanUpChunksMethod · 0.80
handlerMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

getRuntimeChunkMethod · 0.80

Tested by

no test coverage detected