MCPcopy
hub / github.com/webpack/webpack / canBeInitial

Method canBeInitial

lib/Chunk.js:526–531  ·  view source on GitHub ↗

* Checks whether it can be initial. * @returns {boolean} whether or not this chunk can be an initial chunk

()

Source from the content-addressed store, hash-verified

524 * @returns {boolean} whether or not this chunk can be an initial chunk
525 */
526 canBeInitial() {
527 for (const chunkGroup of this._groups) {
528 if (chunkGroup.isInitial()) return true;
529 }
530 return false;
531 }
532
533 /**
534 * Checks whether this chunk is only initial.

Callers 15

createHashMethod · 0.80
getChunkSizeMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
INITIAL_CHUNK_FILTERFunction · 0.80
ASYNC_CHUNK_FILTERFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

isInitialMethod · 0.45

Tested by

no test coverage detected