Skip to content

Commit

Permalink
fix: replace RN babel preset with codegen plugin directly (#181)
Browse files Browse the repository at this point in the history
* chore: replace rn preset with codegen plugin

* chore: use plugin in babel config

* docs(changeset): Fix codegen setup & prevent injecting @babel/runtime when building the lib
  • Loading branch information
jbroma authored Dec 5, 2024
1 parent 2300004 commit 3ab7d98
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 121 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-planets-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-native-bottom-tabs': patch
---

Fix codegen setup & prevent injecting @babel/runtime when building the lib
2 changes: 1 addition & 1 deletion packages/react-native-bottom-tabs/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
presets: [
'module:@react-native/babel-preset',
['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
],
plugins: ['@react-native/babel-plugin-codegen'],
};
2 changes: 1 addition & 1 deletion packages/react-native-bottom-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"devDependencies": {
"@expo/config-plugins": "^7.0.0 || ^8.0.0",
"@react-native/babel-preset": "0.76.2",
"@react-native/babel-plugin-codegen": "0.76.2",
"@react-native/eslint-config": "0.76.2",
"@types/jest": "^29.5.5",
"@types/react": "^18.2.44",
Expand Down
Loading

0 comments on commit 3ab7d98

Please sign in to comment.