Skip to content

Commit 3ab7d98

Browse files
authored
fix: replace RN babel preset with codegen plugin directly (#181)
* 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
1 parent 2300004 commit 3ab7d98

File tree

4 files changed

+46
-121
lines changed

4 files changed

+46
-121
lines changed

.changeset/ninety-planets-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-native-bottom-tabs': patch
3+
---
4+
5+
Fix codegen setup & prevent injecting @babel/runtime when building the lib
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
presets: [
3-
'module:@react-native/babel-preset',
43
['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
54
],
5+
plugins: ['@react-native/babel-plugin-codegen'],
66
};

packages/react-native-bottom-tabs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
},
7171
"devDependencies": {
7272
"@expo/config-plugins": "^7.0.0 || ^8.0.0",
73-
"@react-native/babel-preset": "0.76.2",
73+
"@react-native/babel-plugin-codegen": "0.76.2",
7474
"@react-native/eslint-config": "0.76.2",
7575
"@types/jest": "^29.5.5",
7676
"@types/react": "^18.2.44",

0 commit comments

Comments
 (0)