Skip to content

Commit

Permalink
Instruct terser to not mangle class names so Catalyst works (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Aug 16, 2022
1 parent 5e9003e commit 9aef2dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rude-grapes-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Instruct terser to not mangle class names so Catalyst works
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
plugins: [
resolve(),
typescript(),
terser()
terser({keep_classnames: /Element$/})
],
onwarn: (warning, warn) => {
if (warning.code === "THIS_IS_UNDEFINED") return
Expand Down

0 comments on commit 9aef2dc

Please sign in to comment.