MCPcopy
hub / github.com/webpack/webpack / applyPerformanceDefaults

Function applyPerformanceDefaults

lib/config/defaults.js:2143–2148  ·  view source on GitHub ↗
(performance, { production })

Source from the content-addressed store, hash-verified

2141 * @returns {void}
2142 */
2143const applyPerformanceDefaults = (performance, { production }) => {
2144 if (performance === false) return;
2145 D(performance, "maxAssetSize", 250000);
2146 D(performance, "maxEntrypointSize", 250000);
2147 F(performance, "hints", () => (production ? "warning" : false));
2148};
2149
2150/**
2151 * Apply optimization defaults.

Callers 1

Calls 2

DFunction · 0.70
FFunction · 0.70

Tested by

no test coverage detected