Commit a1160f0
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_01Xu1vZqhFLF1u85Qc4a7xWX1 parent a1d4d0b commit a1160f0
3 files changed
Lines changed: 412 additions & 845 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments