Skip to content

Commit 513bbc1

Browse files
committed
fix: restore classic runtime for @babel/preset-react (software-mansion#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 software-mansion#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: - software-mansion#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: - software-mansion#6665
1 parent a740641 commit 513bbc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
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"

0 commit comments

Comments
 (0)