Skip to content

Commit

Permalink
Merge pull request #2991 from SamuelAlev/patch-1
Browse files Browse the repository at this point in the history
fix: add assertion on emoji-mart data for ESM mode
  • Loading branch information
zbeyens authored Feb 23, 2024
2 parents aa5ad44 + 546b8b4 commit 75327e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-numbers-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-emoji": patch
---

fix: add assertion as JSON on emoji mart data so it can be read in ESM
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import emojiMartData from '@emoji-mart/data';
import emojiMartData from '@emoji-mart/data' assert { type: 'json' };

import { defaultCategories } from '../../constants';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import emojiMartData from '@emoji-mart/data';
import emojiMartData from '@emoji-mart/data' assert { type: 'json' };

import {
Emoji,
Expand Down

0 comments on commit 75327e9

Please sign in to comment.