Skip to content

Commit

Permalink
fix(web): enable tree shaking (#8296)
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiitaka committed May 30, 2022
1 parent a2c22eb commit 85b1857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/utils/config.ts
Expand Up @@ -157,7 +157,7 @@ export function getBaseWebpackPartial(

if (builderOptions.compiler !== 'swc' && extraOptions.isScriptOptimizeOn) {
webpackConfig.optimization = {
sideEffects: false,
sideEffects: true,
minimizer: [
new TerserPlugin({
parallel: true,
Expand Down

0 comments on commit 85b1857

Please sign in to comment.