MCPcopy
hub / github.com/webpack/webpack / getNumberOfChunkModules

Method getNumberOfChunkModules

lib/ChunkGraph.js:650–653  ·  view source on GitHub ↗

* Gets number of chunk modules. * @param {Chunk} chunk the chunk * @returns {number} the number of modules which are contained in this chunk

(chunk)

Source from the content-addressed store, hash-verified

648 * @returns {number} the number of modules which are contained in this chunk
649 */
650 getNumberOfChunkModules(chunk) {
651 const cgc = this._getChunkGraphChunk(chunk);
652 return cgc.modules.size;
653 }
654
655 /**
656 * Gets number of chunk full hash modules.

Callers 9

getNumberOfModulesMethod · 0.80
isEmptyMethod · 0.80
cleanUpChunksMethod · 0.80
applySplitMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
handlerMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

_getChunkGraphChunkMethod · 0.95

Tested by

no test coverage detected