MCPcopy
hub / github.com/webpack/webpack / getNumberOfEntryModules

Method getNumberOfEntryModules

lib/ChunkGraph.js:1297–1300  ·  view source on GitHub ↗

* Gets number of entry modules. * @param {Chunk} chunk the chunk * @returns {number} the amount of entry modules in chunk

(chunk)

Source from the content-addressed store, hash-verified

1295 * @returns {number} the amount of entry modules in chunk
1296 */
1297 getNumberOfEntryModules(chunk) {
1298 const cgc = this._getChunkGraphChunk(chunk);
1299 return cgc.entryModules.size;
1300 }
1301
1302 /**
1303 * Gets number of runtime modules.

Callers 15

canChunksBeIntegratedMethod · 0.95
integrateChunksMethod · 0.95
createHashMethod · 0.80
constructorMethod · 0.80
hasEntryModuleMethod · 0.80
constructorMethod · 0.80
chunkConditionMethod · 0.80
applyMethod · 0.80
getOptionsForChunkMethod · 0.80
chunkConditionMethod · 0.80
applyMethod · 0.80
cleanUpChunksMethod · 0.80

Calls 1

_getChunkGraphChunkMethod · 0.95

Tested by

no test coverage detected