[GH-ISSUE #94] Emojis are not included in build #49

Closed
opened 2026-02-17 17:06:00 -05:00 by yindo · 4 comments
Owner

Originally created by @Huskydog9988 on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/Drop-OSS/drop/issues/94

@discordapp/twemoji does not contain the necessary svgs after a build as vite removes the "unreferenced" items. This is caused by the backend dynamically locating the path and not using an import statement.

Originally created by @Huskydog9988 on GitHub (Jun 6, 2025). Original GitHub issue: https://github.com/Drop-OSS/drop/issues/94 `@discordapp/twemoji` does not contain the necessary svgs after a build as vite removes the "unreferenced" items. This is caused by the backend [dynamically locating](https://github.com/Drop-OSS/drop/blob/c3005813a25f7c583231172feba44b47d7c6523c/server/api/v1/emojis/%5Bid%5D/index.get.ts#L30) the path and not using an import statement.
yindo closed this issue 2026-02-17 17:06:00 -05:00
Author
Owner

@DecDuck commented on GitHub (Jun 7, 2025):

Have we reproduced this? I can't

Image

@DecDuck commented on GitHub (Jun 7, 2025): Have we reproduced this? I can't ![Image](https://github.com/user-attachments/assets/be668808-0ef5-41a6-8868-4afe1205441d)
Author
Owner

@Huskydog9988 commented on GitHub (Jun 7, 2025):

It was really simple for me to, I just ran yarn build, then yarn preview. Make sure to disable cache in chrome networking tab.

@Huskydog9988 commented on GitHub (Jun 7, 2025): It was really simple for me to, I just ran `yarn build`, then `yarn preview`. Make sure to disable cache in chrome networking tab.
Author
Owner

@DecDuck commented on GitHub (Jun 7, 2025):

Are we actually using the SVGs? I was digging through the code because of #101 and it seems like it just returns the actual unicode emoji.

@DecDuck commented on GitHub (Jun 7, 2025): Are we actually using the SVGs? I was digging through the code because of #101 and it seems like it just returns the actual unicode emoji.
Author
Owner

@Huskydog9988 commented on GitHub (Jun 7, 2025):

The locale to emoji method returns the Unicode emoji. The Emoji component translates that into an svg so it appears the same cross platform, and because some platforms (cough cough windows), don't support country flags

@Huskydog9988 commented on GitHub (Jun 7, 2025): The locale to emoji method returns the Unicode emoji. The Emoji component translates that into an svg so it appears the same cross platform, and because some platforms (_cough cough_ windows), don't support country flags
yindo changed title from Emojis are not included in build to [GH-ISSUE #94] Emojis are not included in build 2026-06-05 14:21:08 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop#49