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: add assertion on emoji-mart data for ESM mode #2991

Merged
merged 2 commits into from
Feb 23, 2024
Merged

fix: add assertion on emoji-mart data for ESM mode #2991

merged 2 commits into from
Feb 23, 2024

Conversation

SamuelAlev
Copy link
Contributor

Description

Allows testing with Vitest in full ESM mode, otherwise we get:

TypeError: Module "file:///[...]/node_modules/.pnpm/@[email protected]/node_modules/@emoji-mart/data/sets/14/native.json" needs an import attribute of type "json"

Copy link

changeset-bot bot commented Feb 22, 2024

🦋 Changeset detected

Latest commit: 546b8b4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@udecode/plate-emoji Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 22, 2024

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

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 5:57pm

@SamuelAlev SamuelAlev changed the title Patch 1 fix: add assertion on emoji-mart data for ESM mode Feb 22, 2024
@zbeyens zbeyens merged commit 75327e9 into udecode:main Feb 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants