MCPcopy
hub / github.com/webpack/webpack / mergeSizes

Function mergeSizes

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

Source from the content-addressed store, hash-verified

338 * @returns {SplitChunksSizes} the merged sizes
339 */
340const mergeSizes = (...sizes) => {
341 /** @type {SplitChunksSizes} */
342 let merged = {};
343 for (let i = sizes.length - 1; i >= 0; i--) {
344 merged = Object.assign(merged, sizes[i]);
345 }
346 return merged;
347};
348
349/**
350 * Checks whether this object contains the size.

Callers 3

createCacheGroupSourceFunction · 0.85
constructorMethod · 0.85
_getCacheGroupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected