MCPcopy
hub / github.com/webpack/webpack / isOnlyInitial

Method isOnlyInitial

lib/Chunk.js:537–543  ·  view source on GitHub ↗

* Checks whether this chunk is only initial. * @returns {boolean} whether this chunk can only be an initial chunk

()

Source from the content-addressed store, hash-verified

535 * @returns {boolean} whether this chunk can only be an initial chunk
536 */
537 isOnlyInitial() {
538 if (this._groups.size <= 0) return false;
539 for (const chunkGroup of this._groups) {
540 if (!chunkGroup.isInitial()) return false;
541 }
542 return true;
543 }
544
545 /**
546 * Gets entry options.

Callers 1

applyMethod · 0.80

Calls 1

isInitialMethod · 0.45

Tested by

no test coverage detected