@react-native/babel-preset 0.73.3 → 0.73.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/babel-preset",
3
- "version": "0.73.3",
3
+ "version": "0.73.5",
4
4
  "description": "Babel preset for React Native applications",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -59,6 +59,7 @@
59
59
  "@babel/plugin-transform-typescript": "^7.5.0",
60
60
  "@babel/plugin-transform-unicode-regex": "^7.0.0",
61
61
  "@babel/template": "^7.0.0",
62
+ "@react-native/babel-plugin-codegen": "*",
62
63
  "babel-plugin-transform-flow-enums": "^0.0.2",
63
64
  "react-refresh": "^0.4.0"
64
65
  },
@@ -113,6 +113,12 @@ const getPreset = (src, options) => {
113
113
  },
114
114
  ]);
115
115
  }
116
+ if (
117
+ !options.disableStaticViewConfigsCodegen &&
118
+ /\bcodegenNativeComponent</.test(src)
119
+ ) {
120
+ extraPlugins.push([require('@react-native/babel-plugin-codegen')]);
121
+ }
116
122
  if (!options || !options.disableImportExportTransform) {
117
123
  extraPlugins.push(
118
124
  [require('@babel/plugin-proposal-export-default-from')],