Skip to content

Commit

Permalink
feat: enable JS codegen transform (#717)
Browse files Browse the repository at this point in the history
### Summary

- [x] - added `@react-native/babel-plugin-codegen` to the bob preset for
running the JS transform when building with it

### Test plan

TBD
  • Loading branch information
jbroma authored Dec 6, 2024
1 parent e9f80ea commit 2fc7496
Show file tree
Hide file tree
Showing 3 changed files with 664 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/react-native-builder-bob/babel-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = function (api, options, cwd) {
require.resolve('@babel/preset-flow'),
],
plugins: [
require.resolve('@react-native/babel-plugin-codegen'),
require.resolve('@babel/plugin-transform-strict-mode'),
[
require.resolve('./lib/babel'),
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-builder-bob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@babel/preset-flow": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@react-native/babel-plugin-codegen": "^0.76.3",
"babel-plugin-module-resolver": "^5.0.2",
"browserslist": "^4.20.4",
"cosmiconfig": "^9.0.0",
Expand Down
Loading

0 comments on commit 2fc7496

Please sign in to comment.