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.1
Actually use the compiler
Eric Roberts
2026-11-09T20:41:04Zhttps://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md#600-beta0-2026-03-03 This made our previous config stop working. They recommend switching to reactCompilerPreset. But it turns out there's an "experimental" rust port of react compiler. And what fun is life without rust and experimental things.
Semantic diff summary
0 added,
1 modified,
0 signature changed,
0 removed
across 1 analyzed file
(1 file skipped: unsupported file type)
+1
-1
package.json
#
| ... | ... | @@ -89,13 +89,13 @@ | |
| 89 | 89 | "@tauri-apps/cli": "^2.12.3", | |
| 90 | 90 | "@testing-library/react": "16.3.0", | |
| 91 | 91 | "@vitejs/plugin-react": "^6.1.1", | |
| 92 | - | "babel-plugin-react-compiler": "^1.0.0", | |
| 93 | 92 | "eslint": "^9.37.0", | |
| 94 | 93 | "eslint-plugin-react": "^7.37.5", | |
| 95 | 94 | "eslint-plugin-react-hooks": "^7.0.0", | |
| 96 | 95 | "globals": "^16.4.0", | |
| 97 | 96 | "jiti": "^2.6.1", | |
| 98 | 97 | "jsdom": "26.1.0", | |
| 98 | + | "oxc-transform-react": "^0.145.0", | |
| 99 | 99 | "oxfmt": "^0.65.0", | |
| 100 | 100 | "prettier": "3.3.3", | |
| 101 | 101 | "react-compiler-runtime": "^1.0.0", |
+1
-5
vite.config.js
#
| ... | ... | @@ -24,11 +24,7 @@ export default defineConfig(({ mode }) => { | |
| 24 | 24 | (await git.raw(["describe", "--always"])).trim(), | |
| 25 | 25 | }, | |
| 26 | 26 | }), | |
| 27 | - | react({ | |
| 28 | - | babel: { | |
| 29 | - | plugins: [["babel-plugin-react-compiler", { target: "18" }]], | |
| 30 | - | }, | |
| 31 | - | }), | |
| 27 | + | react({ compiler: { target: "18" } }), | |
| 32 | 28 | svgr(), | |
| 33 | 29 | !isTest && eslint({ failOnError: false }), | |
| 34 | 30 | VitePWA({ |