feat(react-native): add useTransformReactJSX babel config to generators (#19170)

This commit is contained in:
Tobbb 2024-01-30 18:48:43 +01:00 committed by GitHub
parent 647f41f395
commit 2f5bca065b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
{
"presets": ["module:metro-react-native-babel-preset"]
"presets": [
[
"module:metro-react-native-babel-preset",
{
"useTransformReactJSX": true
}
]
]
}

View File

@ -11,7 +11,9 @@
"plugins": [],
"env": {
"test": {
"presets": ["module:metro-react-native-babel-preset"]
"presets": [
["module:metro-react-native-babel-preset", { "useTransformReactJSX": true }]
]
}
}
}