MCPcopy
hub / github.com/webpack/webpack / getTooSmallTypes

Function getTooSmallTypes

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

Source from the content-addressed store, hash-verified

155 * @returns {Types} set of types that are too small
156 */
157const getTooSmallTypes = (size, minSize) => {
158 /** @type {Types} */
159 const types = new Set();
160 for (const key in size) {
161 const s = size[key];
162 if (s === 0) continue;
163 const minSizeValue = minSize[key];
164 if (typeof minSizeValue === "number" && s < minSizeValue) types.add(key);
165 }
166 return types;
167};
168
169/**
170 * Gets number of matching size types.

Callers 1

removeProblematicNodesFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected