Skip to content

Commit

Permalink
fix(button): register element registration side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Aug 20, 2021
1 parent c1397d8 commit 811b329
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-dryers-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lion/button': patch
---

Add files that result in customElements.define to sideEffect so build tools don't tree shake them
5 changes: 4 additions & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"test": "cd ../../ && npm run test:browser -- --group button"
},
"sideEffects": [
"lion-button.js"
"lion-button.js",
"lion-button-reset.js",
"lion-button-submit.js",
"define.js"
],
"dependencies": {
"@lion/core": "0.18.2"
Expand Down

0 comments on commit 811b329

Please sign in to comment.