Commit c21f505
authored
feat(perf): update deps (#836)
* feat(perf): swap React for @tanstack/dom-vite shim
Drop-in React-compatible shim (~9-10KB gzipped) replacing react / react-dom /
react-dom/server via the @tanstack/dom-vite Vite plugin. Installing just
@tanstack/dom-vite pulls the full set (dom-core, scheduler, react, react-dom,
react-dom-server) transitively.
Build-size win: app-shell + react gzip 160KB → 116KB (-44KB).
Mobile Lighthouse: slight improvement (-128ms FCP, -27ms TBT).
Desktop Lighthouse: parity with baseline.
Also:
- oxlint: ignore .claude/, disable nested config discovery so stale agent
worktrees with their own oxlintrc copies don't break lint.
* chore(deps): bump @tanstack/dom-vite to 0.1.0-alpha.3
Brings in raw REACT_LAZY_TYPE child handling in both SSR (walkNode) and
client (pushChildren). RSC Flight serializes 'use client' components —
CodeBlock, CodeBlockView, CodeExplorer, etc. — as bare lazy objects
directly in the tree (not wrapped in REACT_ELEMENT_TYPE). The previous
shim dropped those silently, so code snippets disappeared on docs pages
(e.g. /virtual/latest/docs/introduction).
* feat: bump @tanstack/dom-vite to 0.1.0-alpha.4 + alias runtime-specific server variants
Pulls in the shell-chunk batching perf fix landed in the shim's
react-dom-server (0.1.0-alpha.4 vs. alpha.3 before).
Adds manual top-level aliases for `react-dom/server.{edge,node,bun,
browser}` and `react-dom/static.*` → `@tanstack/react-dom-server`. The
shim ships a single universal server build; React splits per runtime
and @vitejs/plugin-rsc / the Netlify edge adapter import those
per-runtime specifiers conditionally. Vite 8's EnvironmentResolveOptions
doesn't accept `alias`, so these have to live at top-level resolve.alias.
Home route verified rendering cleanly via SSR with no console errors.1 parent 0e6dc8b commit c21f505
4 files changed
+80
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
39 | 57 | | |
40 | 58 | | |
41 | 59 | | |
42 | 60 | | |
| 61 | + | |
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
| |||
102 | 121 | | |
103 | 122 | | |
104 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
105 | 130 | | |
106 | 131 | | |
107 | 132 | | |
| |||
168 | 193 | | |
169 | 194 | | |
170 | 195 | | |
| 196 | + | |
171 | 197 | | |
172 | 198 | | |
173 | 199 | | |
| |||
0 commit comments