MCPcopy
hub / github.com/webpack/webpack / totalSize

Function totalSize

lib/optimize/SplitChunksPlugin.js:442–448  ·  view source on GitHub ↗
(sizes)

Source from the content-addressed store, hash-verified

440 * @returns {Size} the total size
441 */
442const totalSize = (sizes) => {
443 let size = 0;
444 for (const key of /** @type {SourceType[]} */ (Object.keys(sizes))) {
445 size += sizes[key];
446 }
447 return size;
448};
449
450/**
451 * Returns a function to get the name of the chunk.

Callers 1

compareEntriesFunction · 0.85

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected