fix(docs): switch to SWC minimizer to fix broken runtime bundle

Terser emits digit-prefixed hex chunk-name keys unquoted in webpack's runtime, producing an invalid
object literal that crashes hydration. SWC quotes them correctly.

fix #3035
This commit is contained in:
fallenbagel
2026-05-16 14:17:29 +08:00
parent 6bb402a651
commit d88242fd62
3 changed files with 833 additions and 213 deletions

View File

@@ -12,6 +12,12 @@ const config: Config = {
baseUrl: '/',
trailingSlash: false,
future: {
faster: {
swcJsMinimizer: true,
},
},
organizationName: 'seerr-team',
projectName: 'seerr',
deploymentBranch: 'gh-pages',

View File

@@ -19,6 +19,7 @@
},
"dependencies": {
"@docusaurus/core": "3.10.1",
"@docusaurus/faster": "^3.10.1",
"@docusaurus/preset-classic": "3.10.1",
"@easyops-cn/docusaurus-search-local": "^0.55.1",
"@mdx-js/react": "^3.0.0",

1039
gen-docs/pnpm-lock.yaml generated
View File

File diff suppressed because it is too large Load Diff