Skip to content

Commit 541511b

Browse files
committed
feat: add react-compiler to example app (#33)
1 parent e6f947a commit 541511b

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

example/app.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"ios": {
1010
"bundleIdentifier": "dev.reactnativecss",
1111
"buildFromSource": false
12+
},
13+
"experiments": {
14+
"reactCompiler": false
1215
}
1316
}
1417
}

example/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function (api) {
99

1010
return getConfig(
1111
{
12-
presets: ["babel-preset-expo"],
12+
presets: [["babel-preset-expo"]],
1313
},
1414
{ root, pkg },
1515
);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
"!**/__mocks__"
118118
],
119119
"dependencies": {
120+
"babel-plugin-react-compiler": "^19.1.0-rc.2",
120121
"colorjs.io": "0.6.0-alpha.1",
121122
"comment-json": "^4.2.5",
122123
"debug": "^4.4.1"

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4527,6 +4527,15 @@ __metadata:
45274527
languageName: node
45284528
linkType: hard
45294529

4530+
"babel-plugin-react-compiler@npm:^19.1.0-rc.2":
4531+
version: 19.1.0-rc.2
4532+
resolution: "babel-plugin-react-compiler@npm:19.1.0-rc.2"
4533+
dependencies:
4534+
"@babel/types": "npm:^7.26.0"
4535+
checksum: 10c0/d48f6f7956852730c3bb92630e166348bf1849830829cdaaae83cbc29769d1933260dbf4ba77be6dd511f0c0c0a0ad479022f2cad7534e744dc360ce9c8ad7a9
4536+
languageName: node
4537+
linkType: hard
4538+
45304539
"babel-plugin-react-native-web@npm:~0.19.13":
45314540
version: 0.19.13
45324541
resolution: "babel-plugin-react-native-web@npm:0.19.13"
@@ -10914,6 +10923,7 @@ __metadata:
1091410923
"@types/react": "npm:^19.1.8"
1091510924
"@types/react-refresh": "npm:^0"
1091610925
"@types/react-test-renderer": "npm:^19"
10926+
babel-plugin-react-compiler: "npm:^19.1.0-rc.2"
1091710927
babel-plugin-tester: "npm:^12.0.0"
1091810928
babel-preset-expo: "npm:13.3.0-canary-20250713-8f814f8"
1091910929
colorjs.io: "npm:0.6.0-alpha.1"

0 commit comments

Comments
 (0)