MCPcopy
hub / github.com/webpack/webpack / assetGroup

Function assetGroup

lib/stats/DefaultStatsFactoryPlugin.js:2079–2085  ·  view source on GitHub ↗
(children, assets)

Source from the content-addressed store, hash-verified

2077 * @returns {{ size: number }} asset size
2078 */
2079const assetGroup = (children, assets) => {
2080 let size = 0;
2081 for (const asset of children) {
2082 size += asset.size;
2083 }
2084 return { size };
2085};
2086
2087/** @typedef {{ size: number, sizes: Record<string, number> }} ModuleGroupBySizeResult */
2088

Callers 4

groupByFlagFunction · 0.85
groupByAssetInfoFlagFunction · 0.85
groupByNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected