MCPcopy
hub / github.com/webpack/webpack / hasNonZeroSizes

Function hasNonZeroSizes

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

Source from the content-addressed store, hash-verified

352 * @returns {boolean} true, if there are sizes > 0
353 */
354const hasNonZeroSizes = (sizes) => {
355 for (const key of /** @type {SourceType[]} */ (Object.keys(sizes))) {
356 if (sizes[key] > 0) return true;
357 }
358 return false;
359};
360
361/**
362 * Returns the combine sizes.

Callers 1

_getCacheGroupMethod · 0.85

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected