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 ESM resolution in @tabler/icons-react #1231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MonsterDeveloper
Copy link

Issue

Currently the ESM environment still resolves to CJS exports, according to AreTheTypesWrong:
CleanShot 2024-09-27 at 22 04 21@2x

Changes made

I've fixed the file extensions settings in rollup.config: .js/.tsfor CJS and .mjs/.mts for ESM (since there's no type: module in package.json).

I've also included exports in the package.json to explicitly specify files to resolve to.

Now all the environments resolve correctly:
CleanShot 2024-09-27 at 22 02 32@2x

Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tabler-icons ✅ Ready (Inspect) Visit Preview Sep 27, 2024 8:07pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant