Skip to content

Commit d88242f

Browse files
committed
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
1 parent 6bb402a commit d88242f

3 files changed

Lines changed: 834 additions & 214 deletions

File tree

gen-docs/docusaurus.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ const config: Config = {
1212
baseUrl: '/',
1313
trailingSlash: false,
1414

15+
future: {
16+
faster: {
17+
swcJsMinimizer: true,
18+
},
19+
},
20+
1521
organizationName: 'seerr-team',
1622
projectName: 'seerr',
1723
deploymentBranch: 'gh-pages',

gen-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"dependencies": {
2121
"@docusaurus/core": "3.10.1",
22+
"@docusaurus/faster": "^3.10.1",
2223
"@docusaurus/preset-classic": "3.10.1",
2324
"@easyops-cn/docusaurus-search-local": "^0.55.1",
2425
"@mdx-js/react": "^3.0.0",

0 commit comments

Comments
 (0)