MCPcopy
hub / github.com/webpack/webpack / isTooBig

Function isTooBig

lib/util/deterministicGrouping.js:123–131  ·  view source on GitHub ↗
(size, maxSize)

Source from the content-addressed store, hash-verified

121 * @returns {boolean} true, when size is too big
122 */
123const isTooBig = (size, maxSize) => {
124 for (const key in size) {
125 const s = size[key];
126 if (s === 0) continue;
127 const maxSizeValue = maxSize[key];
128 if (typeof maxSizeValue === "number" && s > maxSizeValue) return true;
129 }
130 return false;
131};
132
133/**
134 * Checks whether this object is too small.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected