Skip to content

Commit 282ce58

Browse files
committed
comments
1 parent 15ab4d6 commit 282ce58

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/docusaurus/src/webpack

packages/docusaurus/src/webpack/base.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)