MCPcopy
hub / github.com/webpack/webpack / getChunkModulesSize

Method getChunkModulesSize

lib/ChunkGraph.js:966–969  ·  view source on GitHub ↗

* Gets chunk modules size. * @param {Chunk} chunk the chunk * @returns {number} total size of all modules in the chunk

(chunk)

Source from the content-addressed store, hash-verified

964 * @returns {number} total size of all modules in the chunk
965 */
966 getChunkModulesSize(chunk) {
967 const cgc = this._getChunkGraphChunk(chunk);
968 return cgc.modules.getFromUnorderedCache(getModulesSize);
969 }
970
971 /**
972 * Gets chunk modules sizes.

Callers 3

modulesSizeMethod · 0.80
applyMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected