Skip to content

Commit

Permalink
fix: icons esm export error
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcd committed Mar 6, 2024
1 parent acaa60c commit ee35abc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/warm-nails-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@telegraph/icon": patch
---

fix esm export for ionicons with .js extension
4 changes: 3 additions & 1 deletion packages/icon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { Icon } from "./Icon";
export * from "ionicons/icons";

// Export by ".js" extension to avoid ESM resolution error
export * from "ionicons/icons/index.js";

0 comments on commit ee35abc

Please sign in to comment.