Skip to content

Commit 67a7c45

Browse files
committed
fix: restore classic runtime for @babel/preset-react (#6760)
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Fixes #6665 Applying the change I made to `react-native-builder-bob`: - callstack/react-native-builder-bob#695 It restores `classic` runtime for the `@babel/react-native` preset used for generating ESModule code. The behavior was changed when we bumped builder-bob: - #6485 ## Test plan I ran the `diff` for the version of `lib` without `jsxRuntime: classic` and with it - the differences are only in regards to `_jsx` usage. You can read more here: - #6665
1 parent ea6c7b8 commit 67a7c45

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: packages/react-native-reanimated/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"prettier": "^3.3.3",
144144
"react": "18.3.1",
145145
"react-native": "^0.76.1",
146-
"react-native-builder-bob": "0.30.2",
146+
"react-native-builder-bob": "0.33.1",
147147
"react-native-gesture-handler": "2.20.2",
148148
"react-native-web": "0.19.11",
149149
"react-test-renderer": "18.2.0",
@@ -158,7 +158,8 @@
158158
[
159159
"module",
160160
{
161-
"esm": true
161+
"esm": true,
162+
"jsxRuntime": "classic"
162163
}
163164
],
164165
"typescript"

Diff for: yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -17688,9 +17688,9 @@ __metadata:
1768817688
languageName: node
1768917689
linkType: hard
1769017690

17691-
"react-native-builder-bob@npm:0.30.2":
17692-
version: 0.30.2
17693-
resolution: "react-native-builder-bob@npm:0.30.2"
17691+
"react-native-builder-bob@npm:0.33.1":
17692+
version: 0.33.1
17693+
resolution: "react-native-builder-bob@npm:0.33.1"
1769417694
dependencies:
1769517695
"@babel/core": "npm:^7.25.2"
1769617696
"@babel/plugin-transform-strict-mode": "npm:^7.24.7"
@@ -17716,7 +17716,7 @@ __metadata:
1771617716
yargs: "npm:^17.5.1"
1771717717
bin:
1771817718
bob: bin/bob
17719-
checksum: 10/0a6f2321ce7ba4aa08a40e5d599c94fe4705afc7d67ac9d4e2400603dd91cfa6646afdc02697ff683dca3b2654b1701bab4114c3548f4dfa0c9327a74a8a8a48
17719+
checksum: 10/c4aaefdc1f82a88ce66c5b448ed851213ca614c777a775cb0772ab80e75852761b915d715ed6f58f99670b1b2fba6435e1d9c03445b9ba8eb44befeb77f5b532
1772017720
languageName: node
1772117721
linkType: hard
1772217722

@@ -17877,7 +17877,7 @@ __metadata:
1787717877
prettier: "npm:^3.3.3"
1787817878
react: "npm:18.3.1"
1787917879
react-native: "npm:^0.76.1"
17880-
react-native-builder-bob: "npm:0.30.2"
17880+
react-native-builder-bob: "npm:0.33.1"
1788117881
react-native-gesture-handler: "npm:2.20.2"
1788217882
react-native-web: "npm:0.19.11"
1788317883
react-test-renderer: "npm:18.2.0"

0 commit comments

Comments
 (0)