Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'auto' being tree-shaken in production builds #2914

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading