Skip to content

Commit 2fc7496

Browse files
authored
feat: enable JS codegen transform (#717)
### Summary - [x] - added `@react-native/babel-plugin-codegen` to the bob preset for running the JS transform when building with it ### Test plan TBD
1 parent e9f80ea commit 2fc7496

File tree

3 files changed

+664
-9
lines changed

3 files changed

+664
-9
lines changed

packages/react-native-builder-bob/babel-preset.js

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module.exports = function (api, options, cwd) {
4747
require.resolve('@babel/preset-flow'),
4848
],
4949
plugins: [
50+
require.resolve('@react-native/babel-plugin-codegen'),
5051
require.resolve('@babel/plugin-transform-strict-mode'),
5152
[
5253
require.resolve('./lib/babel'),

packages/react-native-builder-bob/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@babel/preset-flow": "^7.24.7",
5252
"@babel/preset-react": "^7.24.7",
5353
"@babel/preset-typescript": "^7.24.7",
54+
"@react-native/babel-plugin-codegen": "^0.76.3",
5455
"babel-plugin-module-resolver": "^5.0.2",
5556
"browserslist": "^4.20.4",
5657
"cosmiconfig": "^9.0.0",

0 commit comments

Comments
 (0)