Skip to content

Commit

Permalink
fix: configure Babel for React Native Reanimated build
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed Feb 10, 2025
1 parent 49cd204 commit 8bfb7b1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": ["react-native-reanimated/plugin"]
}
5 changes: 5 additions & 0 deletions .changeset/calm-ducks-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-native-reanimated-carousel": patch
---

Configure Babel for React Native Reanimated build
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@
"source": "src",
"output": "lib",
"targets": [
"commonjs",
[
"commonjs",
{
"babelrc": true
}
],
"module",
"typescript"
]
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5266,9 +5266,9 @@ __metadata:
linkType: hard

"caniuse-lite@npm:^1.0.30001400, caniuse-lite@npm:^1.0.30001503":
version: 1.0.30001566
resolution: "caniuse-lite@npm:1.0.30001566"
checksum: fdff43ed498201bf4f6074bd1112bd853e91973b6ccb016049b030948a7d197cba235ac4d93e712d1862b33a3c947bf4e62bad7011ccdac78e5179501b28d04a
version: 1.0.30001699
resolution: "caniuse-lite@npm:1.0.30001699"
checksum: 325bf4d4ea8ab377046b6d5a43685359d5426adbb62aa1bea2c851cb5673547ef22b4a2b0e172e5a87ac74a7042e6ad23b87b78fdd04543c152d4e799397d7ba
languageName: node
linkType: hard

Expand Down

0 comments on commit 8bfb7b1

Please sign in to comment.