MCPcopy
hub / github.com/webpack/webpack / isTooSmall

Function isTooSmall

lib/util/deterministicGrouping.js:139–147  ·  view source on GitHub ↗
(size, minSize)

Source from the content-addressed store, hash-verified

137 * @returns {boolean} true, when size is too small
138 */
139const isTooSmall = (size, minSize) => {
140 for (const key in size) {
141 const s = size[key];
142 if (s === 0) continue;
143 const minSizeValue = minSize[key];
144 if (typeof minSizeValue === "number" && s < minSizeValue) return true;
145 }
146 return false;
147};
148
149/** @typedef {Set<string>} Types */
150

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected