Skip to content

Commit 3ab50a0

Browse files
committed
Minify DEV bundles with closure
The goal is to improve speed of the development by inlining and DCE unused branches. We have the ability to preserve some variable names and pretty print in the production version so might as well do the same with DEV.
1 parent a0a435d commit 3ab50a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rollup/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function getPlugins(
361361
const isProduction = isProductionBundleType(bundleType);
362362
const isProfiling = isProfilingBundleType(bundleType);
363363

364-
const needsMinifiedByClosure = isProduction && bundleType !== ESM_PROD;
364+
const needsMinifiedByClosure = bundleType !== ESM_PROD && bundleType !== ESM_DEV;
365365

366366
return [
367367
// Keep dynamic imports as externals

0 commit comments

Comments
 (0)