Skip to content

Commit c9868d9

Browse files
feat:react-compiler
1 parent 602a2d2 commit c9868d9

5 files changed

Lines changed: 38 additions & 1 deletion

File tree

packages/rn-tester/.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}]
66
],
77
"plugins": [
8+
"babel-plugin-react-compiler",
89
"babel-plugin-transform-flow-enums"
910
]
1011
}

packages/rn-tester/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@react-native/new-app-screen": "0.84.0-main",
2929
"@react-native/popup-menu-android": "0.84.0-main",
3030
"flow-enums-runtime": "^0.0.6",
31+
"babel-plugin-react-compiler": "^1.0.0",
3132
"invariant": "^2.2.4",
3233
"nullthrows": "^1.1.1"
3334
},

private/helloworld/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
module.exports = {
1212
presets: ['module:@react-native/babel-preset'],
13+
plugins: ['babel-plugin-react-compiler'],
1314
};

private/helloworld/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@react-native/eslint-config": "0.84.0-main",
2525
"@react-native/metro-config": "0.84.0-main",
2626
"@react-native/typescript-config": "0.84.0-main",
27+
"babel-plugin-react-compiler": "^1.0.0",
2728
"@types/jest": "^29.5.14",
2829
"commander": "^12.0.0",
2930
"eslint": "^8.19.0",

yarn.lock

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@
205205
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"
206206
integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==
207207

208+
"@babel/helper-validator-identifier@^7.28.5":
209+
version "7.28.5"
210+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4"
211+
integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==
212+
208213
"@babel/helper-validator-option@^7.25.9", "@babel/helper-validator-option@^7.27.1":
209214
version "7.27.1"
210215
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f"
@@ -1043,7 +1048,20 @@
10431048
"@babel/parser" "^7.27.2"
10441049
"@babel/types" "^7.27.1"
10451050

1046-
"@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3", "@babel/traverse@^7.25.3", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.8":
1051+
"@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3":
1052+
version "7.26.9"
1053+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.9.tgz#4398f2394ba66d05d988b2ad13c219a2c857461a"
1054+
integrity sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg==
1055+
dependencies:
1056+
"@babel/code-frame" "^7.26.2"
1057+
"@babel/generator" "^7.26.9"
1058+
"@babel/parser" "^7.26.9"
1059+
"@babel/template" "^7.26.9"
1060+
"@babel/types" "^7.26.9"
1061+
debug "^4.3.1"
1062+
globals "^11.1.0"
1063+
1064+
"@babel/traverse@^7.25.3", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.8":
10471065
version "7.26.9"
10481066
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.9.tgz#4398f2394ba66d05d988b2ad13c219a2c857461a"
10491067
integrity sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg==
@@ -1077,6 +1095,14 @@
10771095
"@babel/helper-string-parser" "^7.27.1"
10781096
"@babel/helper-validator-identifier" "^7.27.1"
10791097

1098+
"@babel/types@^7.26.0":
1099+
version "7.28.5"
1100+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.5.tgz#10fc405f60897c35f07e85493c932c7b5ca0592b"
1101+
integrity sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==
1102+
dependencies:
1103+
"@babel/helper-string-parser" "^7.27.1"
1104+
"@babel/helper-validator-identifier" "^7.28.5"
1105+
10801106
"@babel/types@^7.26.9", "@babel/types@^7.28.2":
10811107
version "7.28.2"
10821108
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b"
@@ -3101,6 +3127,13 @@ babel-plugin-polyfill-regenerator@^0.6.1:
31013127
dependencies:
31023128
"@babel/helper-define-polyfill-provider" "^0.6.2"
31033129

3130+
babel-plugin-react-compiler@^1.0.0:
3131+
version "1.0.0"
3132+
resolved "https://registry.yarnpkg.com/babel-plugin-react-compiler/-/babel-plugin-react-compiler-1.0.0.tgz#bdf7360a23a4d5ebfca090255da3893efd07425f"
3133+
integrity sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==
3134+
dependencies:
3135+
"@babel/types" "^7.26.0"
3136+
31043137
babel-plugin-replace-ts-export-assignment@^0.0.2:
31053138
version "0.0.2"
31063139
resolved "https://registry.yarnpkg.com/babel-plugin-replace-ts-export-assignment/-/babel-plugin-replace-ts-export-assignment-0.0.2.tgz#927a30ba303fcf271108980a8d4f80a693e1d53f"

0 commit comments

Comments
 (0)