cheogram-www
created pr with
cheogram-www/react-compiler-fix.1
commented
Changes are available at https://tangled.org/mrry.band/cheogram-www on branch react-compiler-fix.
added cheogram-www/react-compiler-fix.2
1: b99f593 ! 1: 9dc8627 Make sure we're using react compiler
2: c9c5d5b = 2: 05c3c29 Actually use the compiler
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:react-compiler-fix | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:react-compiler-fix [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:react-compiler-fixadd comment to patch request:
ssh pr.pico.sh comment cheogram-www:react-compiler-fix "lgtm!"
Patchset
cheogram-www/react-compiler-fix.2
Make sure we're using react compiler
Eric Roberts
2026-11-10T01:08:22ZSemantic diff summary
1 added,
1 modified,
0 signature changed,
0 removed
across 2 analyzed files
(1 file skipped: unsupported file type)
+1
-1
package.json
#
| ... | ... | @@ -62,7 +62,7 @@ | |
| 62 | 62 | "scripts": { | |
| 63 | 63 | "dev": "vite", | |
| 64 | 64 | "build": "npm run format:check ; npm test && tsc -b && vite build", | |
| 65 | - | "test": "vitest run --reporter=dot", | |
| 65 | + | "test": "vitest run --reporter=dot && node --test scripts/compiler.test.mjs", | |
| 66 | 66 | "test:e2e": "node scripts/e2e.mjs --headed", | |
| 67 | 67 | "test:e2e:debug": "node scripts/e2e.mjs --debug", | |
| 68 | 68 | "test:e2e:headless": "node scripts/e2e.mjs", |
+3
-0
scripts/compiler-fixture.tsx
#
+19
-0
scripts/compiler.test.mjs
#
| ... | ... | @@ -0,0 +1,19 @@ | |
| 1 | + | import assert from "node:assert/strict"; | |
| 2 | + | import { test } from "node:test"; | |
| 3 | + | import { createServer } from "vite"; | |
| 4 | + | ||
| 5 | + | test("runs React Compiler through the Vite configuration", async () => { | |
| 6 | + | const server = await createServer({ | |
| 7 | + | server: { middlewareMode: true, hmr: false, ws: false, watch: null }, | |
| 8 | + | optimizeDeps: { noDiscovery: true, include: [] }, | |
| 9 | + | }); | |
| 10 | + | try { | |
| 11 | + | const result = await server.transformRequest( | |
| 12 | + | "/scripts/compiler-fixture.tsx", | |
| 13 | + | ); | |
| 14 | + | assert.ok(result); | |
| 15 | + | assert.match(result.code, /react-compiler-runtime/); | |
| 16 | + | } finally { | |
| 17 | + | await server.close(); | |
| 18 | + | } | |
| 19 | + | }); |