diff --git a/.changeset/warm-nails-cry.md b/.changeset/warm-nails-cry.md new file mode 100644 index 00000000..0882a187 --- /dev/null +++ b/.changeset/warm-nails-cry.md @@ -0,0 +1,5 @@ +--- +"@telegraph/icon": patch +--- + +fix esm export for ionicons with .js extension diff --git a/packages/icon/src/index.ts b/packages/icon/src/index.ts index 1e6371ed..17b158d6 100644 --- a/packages/icon/src/index.ts +++ b/packages/icon/src/index.ts @@ -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";