Skip to content

Commit 779550a

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. --> 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 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 7002414 commit 779550a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/react-native-reanimated/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"prettier": "^3.3.3",
146146
"react": "18.3.1",
147147
"react-native": "0.76.0-rc.3",
148-
"react-native-builder-bob": "0.30.2",
148+
"react-native-builder-bob": "0.33.1",
149149
"react-native-gesture-handler": "2.20.0",
150150
"react-native-web": "0.19.11",
151151
"react-test-renderer": "18.2.0",
@@ -160,7 +160,8 @@
160160
[
161161
"module",
162162
{
163-
"esm": true
163+
"esm": true,
164+
"jsxRuntime": "classic"
164165
}
165166
],
166167
"typescript"

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17820,9 +17820,9 @@ __metadata:
1782017820
languageName: node
1782117821
linkType: hard
1782217822

17823-
"react-native-builder-bob@npm:0.30.2":
17824-
version: 0.30.2
17825-
resolution: "react-native-builder-bob@npm:0.30.2"
17823+
"react-native-builder-bob@npm:0.33.1":
17824+
version: 0.33.1
17825+
resolution: "react-native-builder-bob@npm:0.33.1"
1782617826
dependencies:
1782717827
"@babel/core": "npm:^7.25.2"
1782817828
"@babel/plugin-transform-strict-mode": "npm:^7.24.7"
@@ -17848,7 +17848,7 @@ __metadata:
1784817848
yargs: "npm:^17.5.1"
1784917849
bin:
1785017850
bob: bin/bob
17851-
checksum: 10/0a6f2321ce7ba4aa08a40e5d599c94fe4705afc7d67ac9d4e2400603dd91cfa6646afdc02697ff683dca3b2654b1701bab4114c3548f4dfa0c9327a74a8a8a48
17851+
checksum: 10/c4aaefdc1f82a88ce66c5b448ed851213ca614c777a775cb0772ab80e75852761b915d715ed6f58f99670b1b2fba6435e1d9c03445b9ba8eb44befeb77f5b532
1785217852
languageName: node
1785317853
linkType: hard
1785417854

@@ -18014,7 +18014,7 @@ __metadata:
1801418014
prettier: "npm:^3.3.3"
1801518015
react: "npm:18.3.1"
1801618016
react-native: "npm:0.76.0-rc.3"
18017-
react-native-builder-bob: "npm:0.30.2"
18017+
react-native-builder-bob: "npm:0.33.1"
1801818018
react-native-gesture-handler: "npm:2.20.0"
1801918019
react-native-web: "npm:0.19.11"
1802018020
react-test-renderer: "npm:18.2.0"

0 commit comments

Comments
 (0)