Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(emojimap): remove duplicate keys causing build warnings#2388

Open
Xuan4781 wants to merge 1 commit into
jackyzha0:v4from
Xuan4781:removedupes
Open

fix(emojimap): remove duplicate keys causing build warnings#2388
Xuan4781 wants to merge 1 commit into
jackyzha0:v4from
Xuan4781:removedupes

Conversation

@Xuan4781
Copy link
Copy Markdown

@Xuan4781 Xuan4781 commented May 2, 2026

Fixes #2274

This PR removes duplicate keys in quartz/util/emojimap.json that were causing esbuild warnings during build.

The duplicate entries included repeated emoji names such as:

  • "person walking facing right"
  • "woman walking facing right"
  • "man walking facing right"
  • "person running facing right"

The duplicates were removed using a small script, preserving the first occurrence of each key.

No functional changes were made.


Verification

  • npm run check passes
  • npx quartz build --serve runs without warnings
  • No behavior changes to emoji mapping logic

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview cf015be

@DeanLemans
Copy link
Copy Markdown

why are you adding a bunch of extra keys?

@Xuan4781
Copy link
Copy Markdown
Author

Xuan4781 commented May 4, 2026

Thanks for checking. I didn't add any new keys, the change was purely deduplication. The file was rewritten with a small script so GitHub might show additions and deletion even though the actual set of first occurrence keys stayed the same. Happy to adjust though.

@saberzero1
Copy link
Copy Markdown
Collaborator

Thanks for checking. I didn't add any new keys, the change was purely deduplication. The file was rewritten with a small script so GitHub might show additions and deletion even though the actual set of first occurrence keys stayed the same. Happy to adjust though.

The diff shows only keys that have been moved around. The net diff is zero, which seems unexpected if you're deduplicating.

@Xuan4781
Copy link
Copy Markdown
Author

Xuan4781 commented May 5, 2026

Hi @DeanLemans and @saberzero1, sorry for the confusion! I just realized what that meant. The previous script was misreading the file structure and flattened the Json. I'll work on a new update in a moment. Will also include the script code, just to be safe.

@Xuan4781
Copy link
Copy Markdown
Author

Xuan4781 commented May 5, 2026

After double checking, I think there might not be actual real duplicates and the issue can be closed? There's one instance with "person walking facing right" that showed up 11 times, but they're actually different keys.

@saberzero1
Copy link
Copy Markdown
Collaborator

After double checking, I think there might not be actual real duplicates and the issue can be closed? There's one instance with "person walking facing right" that showed up 11 times, but they're actually different keys.

Yes. Different skin tones.

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.

Duplicate keys in emojimap.json causing build warnings

3 participants