MCPcopy
hub / github.com/webpack/webpack / getTotalSize

Function getTotalSize

lib/stats/DefaultStatsFactoryPlugin.js:1825–1831  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

1823 * @returns {number} total size
1824 */
1825const getTotalSize = (children) => {
1826 let size = 0;
1827 for (const child of children) {
1828 size += getItemSize(child);
1829 }
1830 return size;
1831};
1832
1833/**
1834 * Returns total items.

Callers 1

getItemSizeFunction · 0.85

Calls 1

getItemSizeFunction · 0.85

Tested by

no test coverage detected