File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
packages/docusaurus/src/webpack Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -253,13 +253,6 @@ export async function createBaseConfig({
253
253
modules : [ 'node_modules' , path . join ( siteDir , 'node_modules' ) ] ,
254
254
} ,
255
255
optimization : {
256
- // The optimization.concatenateModules is expensive
257
- // - On the server, it's not useful to run it at all
258
- // - On the client, it leads to a ~3% JS assets total size decrease
259
- // Let's keep it by default, but large sites may prefer faster builds
260
- // See also https://github.com/facebook/docusaurus/pull/11176
261
- concatenateModules : ! isServer ,
262
-
263
256
// The optimization.mergeDuplicateChunks is expensive
264
257
// - On the server, it's not useful to run it at all
265
258
// - On the client, we compared assets/js before/after and see 0 change
Original file line number Diff line number Diff line change @@ -52,6 +52,16 @@ export default async function createServerConfig({
52
52
color : 'yellow' ,
53
53
} ) ,
54
54
] ,
55
+ optimization : {
56
+ // The optimization.concatenateModules is expensive
57
+ // - On the server, it's not useful to run it at all
58
+ // - On the client, it leads to a ~3% JS assets total size decrease
59
+ // Let's keep it by default, but large sites may prefer faster builds
60
+ // See also https://github.com/facebook/docusaurus/pull/11176
61
+ // Note: we don't want to enable it on the client for "docusaurus start"
62
+ // See also https://github.com/facebook/docusaurus/pull/11222
63
+ concatenateModules : false ,
64
+ } ,
55
65
} ) ;
56
66
57
67
return { config, serverBundlePath} ;
You can’t perform that action at this time.
0 commit comments