Skip to content

Commit

Permalink
Minify DEV bundles with closure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebmarkbage committed Jun 7, 2024
1 parent a0a435d commit 3ab50a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function getPlugins(
const isProduction = isProductionBundleType(bundleType);
const isProfiling = isProfilingBundleType(bundleType);

const needsMinifiedByClosure = isProduction && bundleType !== ESM_PROD;
const needsMinifiedByClosure = bundleType !== ESM_PROD && bundleType !== ESM_DEV;

return [
// Keep dynamic imports as externals
Expand Down

0 comments on commit 3ab50a0

Please sign in to comment.