Skip to content

Commit a1160f0

Browse files
serpentbladeclaude
andcommitted
build(docs): migrate to VitePress 2 on Vite 8, drop heap-bump stopgap
Moves @rozie/docs off the lone Vite-5 holdout (VitePress 1.6.4) and onto VitePress 2.0.0-alpha.17 forced onto the repo's existing vite@8.1.0 (Rolldown/Oxc by default) via a root `vite@^7 -> 8.1.0` override. Oxc parses the engine module graph in Rust, so the ASTs never enter the V8 heap — eliminating the docs-build OOM at its root and letting us remove the `NODE_OPTIONS=--max-old-space-size` stopgap (superseding aaa7aee). Keeps the whole monorepo on a single Vite major. Adds oxc-minify (VitePress 2 peer). Spike-measured: no V8 OOM at a 4096 cap (vs the 6144 CI failure today), build ~79s, 176 pages, check-anchors 211/0 clean. Design: docs/superpowers/specs/2026-07-03-vitepress2-vite8-docs-migration-design.md Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xu1vZqhFLF1u85Qc4a7xWX
1 parent a1d4d0b commit a1160f0

3 files changed

Lines changed: 412 additions & 845 deletions

File tree

docs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"gen:usage": "node scripts/gen-usage-pages.mjs",
88
"dev": "node scripts/gen-usage-pages.mjs && vitepress dev .",
9-
"build": "node scripts/gen-usage-pages.mjs && NODE_OPTIONS=--max-old-space-size=8192 vitepress build . && node scripts/check-anchors.mjs",
9+
"build": "node scripts/gen-usage-pages.mjs && vitepress build . && node scripts/check-anchors.mjs",
1010
"preview": "vitepress preview .",
1111
"test": "vitest run"
1212
},
@@ -81,8 +81,9 @@
8181
"rete-area-plugin": "^2.1.2",
8282
"rete-connection-plugin": "^2.0.4",
8383
"rete-render-utils": "^2.0.3",
84+
"oxc-minify": "^0.138.0",
8485
"sortablejs": "^1.15.7",
85-
"vitepress": "^1.5.0",
86+
"vitepress": "2.0.0-alpha.17",
8687
"vitest": "^4.1.5",
8788
"vue": "^3.5.0"
8889
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
},
4242
"pnpm": {
4343
"overrides": {
44-
"vite@^8": "8.1.0"
44+
"vite@^8": "8.1.0",
45+
"vite@^7": "8.1.0"
4546
},
4647
"packageExtensions": {
4748
"@analogjs/vite-plugin-angular": {

0 commit comments

Comments
 (0)