Skip to content

Commit c78ca88

Browse files
committed
feat: add react-compiler
1 parent df26df5 commit c78ca88

File tree

3 files changed

+48
-19
lines changed

3 files changed

+48
-19
lines changed

package.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ export default defineConfig({
99
'ae-internal-missing-underscore': 'off',
1010
},
1111
},
12+
babel: {reactCompiler: true},
13+
reactCompilerOptions: {target: '18'},
1214
})

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-rx",
3-
"version": "4.0.0-canary.0",
3+
"version": "4.0.1-canary.1",
44
"description": "React + RxJS = <3",
55
"keywords": [
66
"action",
@@ -75,6 +75,7 @@
7575
"prettier": "@sanity/prettier-config",
7676
"dependencies": {
7777
"observable-callback": "^1.0.3",
78+
"react-compiler-runtime": "19.0.0-beta-6fc168f-20241025",
7879
"use-effect-event": "^1.0.2"
7980
},
8081
"devDependencies": {
@@ -88,6 +89,7 @@
8889
"@types/react-dom": "^18.3.1",
8990
"@typescript-eslint/eslint-plugin": "^8.12.2",
9091
"@typescript-eslint/parser": "^8.12.2",
92+
"babel-plugin-react-compiler": "beta",
9193
"eslint": "^8.57.1",
9294
"eslint-config-prettier": "^9.1.0",
9395
"eslint-plugin-prettier": "^5.2.1",
@@ -106,7 +108,7 @@
106108
"vitest": "^2.1.4"
107109
},
108110
"peerDependencies": {
109-
"react": "^18.3 || >=19.0.0-rc",
111+
"react": "^18.3 || >=19.0.0-0",
110112
"rxjs": "^7"
111113
},
112114
"packageManager": "[email protected]"

pnpm-lock.yaml

Lines changed: 42 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)