Skip to content

Commit

Permalink
Fix 'auto' being tree-shaken in production builds (#2914)
Browse files Browse the repository at this point in the history
* Update package.json

* changeset
  • Loading branch information
ribeiroguilherme authored Oct 29, 2024
1 parent eec66da commit d6e2254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-geese-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---

Fix issue where 'auto' bundle was tree-shaken by bundlers in prod builds
4 changes: 3 additions & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"homepage": "https://docs.adyen.com/checkout",
"type": "module",
"sideEffects": [
"*.css"
"*.css",
"./auto/auto.js",
"./auto/auto.cjs"
],
"main": "dist/cjs/index.cjs",
"module": "dist/es-legacy/index.js",
Expand Down

0 comments on commit d6e2254

Please sign in to comment.