Skip to content

Commit b230c1a

Browse files
committed
fix: add react complier setup to sample app
1 parent c3f71a5 commit b230c1a

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

examples/SampleApp/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
presets: ['module:@react-native/babel-preset'],
3-
plugins: ['react-native-worklets/plugin'],
3+
plugins: ['babel-plugin-react-compiler', 'react-native-worklets/plugin'],
44
};

examples/SampleApp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"@types/lodash.mergewith": "^4.6.9",
7575
"@types/react": "^19.1.0",
7676
"@types/react-test-renderer": "^19.1.0",
77+
"babel-plugin-react-compiler": "^1.0.0",
7778
"eslint": "^9.28.0",
7879
"eslint-plugin-eslint-comments": "^3.2.0",
7980
"eslint-plugin-jest": "^28.13.3",

examples/SampleApp/yarn.lock

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@
355355
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"
356356
integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==
357357

358+
"@babel/helper-validator-identifier@^7.28.5":
359+
version "7.28.5"
360+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4"
361+
integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==
362+
358363
"@babel/helper-validator-option@^7.25.9":
359364
version "7.25.9"
360365
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz#86e45bd8a49ab7e03f276577f96179653d41da72"
@@ -1033,6 +1038,14 @@
10331038
"@babel/helper-string-parser" "^7.25.9"
10341039
"@babel/helper-validator-identifier" "^7.25.9"
10351040

1041+
"@babel/types@^7.26.0":
1042+
version "7.28.5"
1043+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.5.tgz#10fc405f60897c35f07e85493c932c7b5ca0592b"
1044+
integrity sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==
1045+
dependencies:
1046+
"@babel/helper-string-parser" "^7.27.1"
1047+
"@babel/helper-validator-identifier" "^7.28.5"
1048+
10361049
"@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.27.6":
10371050
version "7.27.6"
10381051
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.27.6.tgz#a434ca7add514d4e646c80f7375c0aa2befc5535"
@@ -3592,6 +3605,13 @@ babel-plugin-polyfill-regenerator@^0.6.1:
35923605
dependencies:
35933606
"@babel/helper-define-polyfill-provider" "^0.6.3"
35943607

3608+
babel-plugin-react-compiler@^1.0.0:
3609+
version "1.0.0"
3610+
resolved "https://registry.yarnpkg.com/babel-plugin-react-compiler/-/babel-plugin-react-compiler-1.0.0.tgz#bdf7360a23a4d5ebfca090255da3893efd07425f"
3611+
integrity sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==
3612+
dependencies:
3613+
"@babel/types" "^7.26.0"
3614+
35953615
35963616
version "0.28.1"
35973617
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.28.1.tgz#9e80a774ddb8038307a62316486669c668fb3568"

0 commit comments

Comments
 (0)