MCPcopy
hub / github.com/webpack/webpack / getChunkModulesSizes

Method getChunkModulesSizes

lib/ChunkGraph.js:976–979  ·  view source on GitHub ↗

* Gets chunk modules sizes. * @param {Chunk} chunk the chunk * @returns {Record<string, number>} total sizes of all modules in the chunk by source type

(chunk)

Source from the content-addressed store, hash-verified

974 * @returns {Record<string, number>} total sizes of all modules in the chunk by source type
975 */
976 getChunkModulesSizes(chunk) {
977 const cgc = this._getChunkGraphChunk(chunk);
978 return cgc.modules.getFromUnorderedCache(getModulesSizes);
979 }
980
981 /**
982 * Gets chunk root modules.

Callers 1

Calls 2

_getChunkGraphChunkMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected