Skip to content

Commit

Permalink
move ssgWorkerThreads option to Docusaurus Faster
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jan 27, 2025
1 parent d01c920 commit 63ccf09
Show file tree
Hide file tree
Showing 6 changed files with 186 additions and 153 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-types/src/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ export type FasterConfig = {
lightningCssMinimizer: boolean;
mdxCrossCompilerCache: boolean;
rspackBundler: boolean;
ssgWorkerThreads: boolean;
};

export type FutureV4Config = {
removeLegacyPostBuildHeadAttribute: boolean;
enableSSGWorkerThreads: boolean;
};

export type FutureConfig = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`loadSiteConfig website with .cjs siteConfig 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -22,7 +23,6 @@ exports[`loadSiteConfig website with .cjs siteConfig 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -85,6 +85,7 @@ exports[`loadSiteConfig website with ts + js config 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -95,7 +96,6 @@ exports[`loadSiteConfig website with ts + js config 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -158,6 +158,7 @@ exports[`loadSiteConfig website with valid JS CJS config 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -168,7 +169,6 @@ exports[`loadSiteConfig website with valid JS CJS config 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -231,6 +231,7 @@ exports[`loadSiteConfig website with valid JS ESM config 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -241,7 +242,6 @@ exports[`loadSiteConfig website with valid JS ESM config 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -304,6 +304,7 @@ exports[`loadSiteConfig website with valid TypeScript CJS config 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -314,7 +315,6 @@ exports[`loadSiteConfig website with valid TypeScript CJS config 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -377,6 +377,7 @@ exports[`loadSiteConfig website with valid TypeScript ESM config 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -387,7 +388,6 @@ exports[`loadSiteConfig website with valid TypeScript ESM config 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -450,6 +450,7 @@ exports[`loadSiteConfig website with valid async config 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -460,7 +461,6 @@ exports[`loadSiteConfig website with valid async config 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -525,6 +525,7 @@ exports[`loadSiteConfig website with valid async config creator function 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -535,7 +536,6 @@ exports[`loadSiteConfig website with valid async config creator function 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -600,6 +600,7 @@ exports[`loadSiteConfig website with valid config creator function 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -610,7 +611,6 @@ exports[`loadSiteConfig website with valid config creator function 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down Expand Up @@ -678,6 +678,7 @@ exports[`loadSiteConfig website with valid siteConfig 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -688,7 +689,6 @@ exports[`loadSiteConfig website with valid siteConfig 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ exports[`load loads props for site with custom i18n path 1`] = `
"lightningCssMinimizer": false,
"mdxCrossCompilerCache": false,
"rspackBundler": false,
"ssgWorkerThreads": false,
"swcHtmlMinimizer": false,
"swcJsLoader": false,
"swcJsMinimizer": false,
Expand All @@ -96,7 +97,6 @@ exports[`load loads props for site with custom i18n path 1`] = `
"type": "localStorage",
},
"v4": {
"enableSSGWorkerThreads": false,
"removeLegacyPostBuildHeadAttribute": false,
},
},
Expand Down
Loading

0 comments on commit 63ccf09

Please sign in to comment.