MCPcopy
hub / github.com/webpack/webpack / size

Method size

lib/Chunk.js:380–387  ·  lib/Chunk.js::Chunk.size

* Returns the estimated size for the requested source type. * @deprecated * @param {ChunkSizeOptions} options options object * @returns {number} total size of this chunk

(options = {})

Source from the content-addressed store, hash-verified

378 * @returns {number} total size of this chunk
379 */
380 size(options = {}) {
381 const chunkGraph = ChunkGraph.getChunkGraphForChunk(
382 this,
383 class="st">"Chunk.size",
384 class="st">"DEP_WEBPACK_CHUNK_SIZE"
385 );
386 return chunkGraph.getChunkSize(this, options);
387 }
388
389 /**
390 * Returns the integrated size with another chunk.

Callers 6

getModulesSizeFunction · 0.45
getModulesSizesFunction · 0.45
writeOutMethod · 0.45
_bindClickEventsFunction · 0.45
webpack.config.jsFile · 0.45

Calls 2

getChunkGraphForChunkMethod · 0.80
getChunkSizeMethod · 0.80

Tested by

no test coverage detected