Skip to content

Commit 0befdc1

Browse files
stipsancursoragent
andauthored
feat: run React Compiler on oxc instead of babel (#344)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
1 parent 2c7cd48 commit 0befdc1

5 files changed

Lines changed: 860 additions & 134 deletions

File tree

.changeset/oxc-react-compiler.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@portabletext/react': patch
3+
---
4+
5+
React Compiler now runs on [oxc](https://oxc.rs) instead of babel. Same output, no changes needed.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,21 @@
5959
"devDependencies": {
6060
"@changesets/changelog-github": "^0.7.0",
6161
"@changesets/cli": "^2.31.1",
62-
"@rolldown/plugin-babel": "^0.2.3",
6362
"@sanity/client": "^7.25.0",
6463
"@sanity/image-url": "^2.1.1",
6564
"@sanity/tsconfig": "^2.2.1",
66-
"@sanity/tsdown-config": "^0.21.1",
65+
"@sanity/tsdown-config": "^0.26.0",
6766
"@sanity/ui": "^3.5.0",
6867
"@types/leaflet": "^1.9.21",
6968
"@types/react": "^19.2.17",
7069
"@types/react-dom": "^19.2.3",
7170
"@types/ws": "^8.18.1",
72-
"@vitejs/plugin-react": "^6.0.4",
73-
"babel-plugin-react-compiler": "^1.0.0",
71+
"@vitejs/plugin-react": "^6.1.0",
7472
"esbuild": "^0.28.1",
7573
"esbuild-register": "^3.6.0",
7674
"groq": "^6.6.0",
7775
"leaflet": "^1.9.4",
76+
"oxc-transform-react": "^0.145.0",
7877
"oxfmt": "^0.61.0",
7978
"oxlint": "^1.79.0",
8079
"oxlint-tsgolint": "^7.0.2001",

0 commit comments

Comments
 (0)