cheogram-www

created pr with cheogram-www/react-compiler-fix.1 on 2026-11-10T01:14:33Z · by 3c31bc8c
commented on 2026-11-10T01:14:33Z · by 3c31bc8c
Changes are available at https://tangled.org/mrry.band/cheogram-www on branch react-compiler-fix.
added cheogram-www/react-compiler-fix.2 on 2026-11-10T01:30:32Z · by 3c31bc8c
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 -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:react-compiler-fix [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:react-compiler-fix
add comment to patch request:
ssh pr.pico.sh comment cheogram-www:react-compiler-fix "lgtm!"
+3 -0 scripts/compiler-fixture.tsx #
......@@ -0,0 +1,3 @@
1+export function CompilerFixture({ name }: { name: string }) {
2+ return <span>{name}</span>;
3+}
+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+});
Back to top