Skip to content

Commit

Permalink
fix(webpack-chunks): Dont merge all modules into vendors (redwoodjs#2082
Browse files Browse the repository at this point in the history
)

Co-authored-by: David Price <thedavid@thedavidprice.com>
  • Loading branch information
dac09 and thedavidprice committed Mar 25, 2021
1 parent ad4a8cc commit 49bea7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ module.exports = (webpackEnv) => {
],
},
optimization: {
mergeDuplicateChunks: true,
splitChunks: {
chunks: 'all',
name: 'vendors',
minChunks: 2,
},
runtimeChunk: {
name: (entrypoint) => `runtime-${entrypoint.name}`,
Expand Down

0 comments on commit 49bea7c

Please sign in to comment.