@react-native/babel-preset 0.89.0-nightly-20261104-edf2b86e6 → 0.89.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/src/configs/main.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/babel-preset",
|
|
3
|
-
"version": "0.89.0-
|
|
3
|
+
"version": "0.89.0-rc.0",
|
|
4
4
|
"description": "Babel preset for React Native applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,11 +45,13 @@
|
|
|
45
45
|
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
|
46
46
|
"@babel/plugin-transform-react-display-name": "^7.24.7",
|
|
47
47
|
"@babel/plugin-transform-react-jsx": "^7.25.2",
|
|
48
|
+
"@babel/plugin-transform-react-jsx-self": "^7.24.7",
|
|
49
|
+
"@babel/plugin-transform-react-jsx-source": "^7.24.7",
|
|
48
50
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
49
51
|
"@babel/plugin-transform-typescript": "^7.25.2",
|
|
50
52
|
"@babel/plugin-transform-unicode-property-regex": "^7.25.9",
|
|
51
53
|
"@babel/plugin-transform-unicode-regex": "^7.24.7",
|
|
52
|
-
"@react-native/babel-plugin-codegen": "0.89.0-
|
|
54
|
+
"@react-native/babel-plugin-codegen": "0.89.0-rc.0",
|
|
53
55
|
"flow-parser": "0.336.0",
|
|
54
56
|
"babel-plugin-transform-flow-enums": "^0.0.2",
|
|
55
57
|
"react-refresh": "^0.14.0"
|
package/src/configs/main.js
CHANGED
|
@@ -230,6 +230,11 @@ const getPreset = (src, options, babel) => {
|
|
|
230
230
|
firstPartyPlugins.push([require('../plugin-warn-on-deep-imports.js')]);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
if (dev && !options.useTransformReactJSXExperimental) {
|
|
234
|
+
extraPlugins.push([require('@babel/plugin-transform-react-jsx-source')]);
|
|
235
|
+
extraPlugins.push([require('@babel/plugin-transform-react-jsx-self')]);
|
|
236
|
+
}
|
|
237
|
+
|
|
233
238
|
if (enableBabelRuntime !== false) {
|
|
234
239
|
// A string value pins a specific runtime version to optimize output.
|
|
235
240
|
const isVersion = typeof enableBabelRuntime === 'string';
|