File tree Expand file tree Collapse file tree
packages/docusaurus/src/webpack Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,13 +253,15 @@ export async function createBaseConfig({
253253 // - On the server, it's not useful to run it at all
254254 // - On the client, it leads to a ~3% JS assets total size decrease
255255 // Let's keep it by default, but large sites may prefer faster builds
256+ // See also https://github.com/facebook/docusaurus/pull/11176
256257 concatenateModules : ! isServer ,
257258
258259 // The optimizations.mergeDuplicateChunks is expensive
259260 // - On the server, it's not useful to run it at all
260261 // - On the client, we compared assets/js before/after and see 0 change
261262 // `du -sk js-before js-after` => the JS assets have the exact same size
262- mergeDuplicateChunks : false ,
263+ // See also https://github.com/facebook/docusaurus/pull/11176
264+ mergeDuplicateChunks : true ,
263265
264266 // Only minimize client bundle in production because server bundle is only
265267 // used for static site generation
You can’t perform that action at this time.
0 commit comments