Skip to content

Commit

Permalink
feat: Use esbuild minify
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Jan 8, 2025
1 parent 4eb00d5 commit 2b6b184
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,14 @@ const config = {
maxRetries: 5,
}),
)
if (!isServer) {
webpackConfig.optimization.minimizer = [
new TerserPlugin({
parallel: true,
terserOptions: {
compress: true,
},
}),
];
}
webpackConfig.optimization.minimize=true
webpackConfig.optimization.minimizer = [
new TerserPlugin({
parallel: true,
minify: TerserPlugin.esbuildMinify,
terserOptions: {},
}),
];
if (!isServer && webpackConfig.optimization.splitChunks) {
// webpack doesn't understand worker deps on quote worker, so we need to manually add them
// https://github.com/webpack/webpack/issues/16895
Expand Down

0 comments on commit 2b6b184

Please sign in to comment.