Skip to content

Commit f37cf12

Browse files
Jake MahonJake Mahon
authored andcommitted
Revert "Optimize build for memory usage"
This reverts commit dd21955.
1 parent 4800dd8 commit f37cf12

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docusaurus.config.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ const config = {
3232
themes: ['@docusaurus/theme-mermaid'],
3333

3434
// Performance optimizations with Docusaurus Faster
35-
// Temporarily disabled memory-intensive optimizations for build stability
3635
future: {
3736
experimental_faster: {
38-
swcJsLoader: false, // Disabled to reduce memory usage
39-
swcJsMinimizer: false, // Disabled to reduce memory usage
40-
swcHtmlMinimizer: false, // Disabled to reduce memory usage
41-
lightningCssMinimizer: false, // Disabled to reduce memory usage
42-
rspackBundler: false, // Disabled to reduce memory usage
43-
rspackPersistentCache: false, // Disabled to reduce memory usage
44-
mdxCrossCompilerCache: true, // Keep this for speed
45-
ssgWorkerThreads: false, // Disabled to reduce memory usage
37+
swcJsLoader: true,
38+
swcJsMinimizer: true,
39+
swcHtmlMinimizer: true,
40+
lightningCssMinimizer: true,
41+
rspackBundler: true,
42+
rspackPersistentCache: true, // 2-5x faster rebuilds
43+
mdxCrossCompilerCache: true,
44+
ssgWorkerThreads: true, // 2x faster static generation
4645
},
4746
v4: {
4847
removeLegacyPostBuildHeadAttribute: true, // Required for worker threads

0 commit comments

Comments
 (0)