chore(website): Enable docusaurus future.experimental_faster (#3978)

This will use rspack and swc to speed up the build process
This commit is contained in:
Fleny
2024-11-09 18:30:30 +01:00
committed by GitHub
parent cfdf77027a
commit 8188e85115
3 changed files with 2384 additions and 584 deletions
+2 -10
View File
@@ -22,16 +22,8 @@ const config: Config = {
projectName: 'discordeno', // Usually your repo name.
trailingSlash: false,
webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('esbuild-loader'),
options: {
loader: 'tsx',
jsx: 'automatic',
format: isServer ? 'cjs' : undefined,
target: isServer ? 'node12' : 'es2017',
},
}),
future: {
experimental_faster: true,
},
onBrokenLinks: 'throw',