MCPcopy
hub / github.com/webpack/webpack / modulesSize

Method modulesSize

lib/Chunk.js:365–372  ·  view source on GitHub ↗

* Returns the total size of all modules in this chunk. * @deprecated * @returns {number} total size of all modules in this chunk

()

Source from the content-addressed store, hash-verified

363 * @returns {number} total size of all modules in this chunk
364 */
365 modulesSize() {
366 const chunkGraph = ChunkGraph.getChunkGraphForChunk(
367 this,
368 "Chunk.modulesSize",
369 "DEP_WEBPACK_CHUNK_MODULES_SIZE"
370 );
371 return chunkGraph.getChunkModulesSize(this);
372 }
373
374 /**
375 * Returns the estimated size for the requested source type.

Callers 1

webpack.config.jsFile · 0.80

Calls 2

getChunkGraphForChunkMethod · 0.80
getChunkModulesSizeMethod · 0.80

Tested by

no test coverage detected