Skip to content

Commit

Permalink
fix: 尝试修复热更新变慢的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxb committed Dec 5, 2024
1 parent 148dd55 commit 6b2f1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rspack/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function createRspackConfig(
},
optimization: {
minimize: options.minimize ?? gez.isProd,
concatenateModules: true,
concatenateModules: gez.isProd || libraryType === 'modern-module',
splitChunks: {
chunks: 'async'
}
Expand Down

0 comments on commit 6b2f1b5

Please sign in to comment.