Concern about core bundle size due to react-icons and @emoji-mart/data #2894
yidianier
started this conversation in
Ideas & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
First of all, thank you for the great work on BlockNote. However, I have a concern regarding the production bundle size.
When I analyzed the bundle, I found that react-icons and @emoji-mart/data are significantly increasing the total size (the latter alone adds ~400KB). I’m curious about the design decision behind this, as not every project needs these out-of-the-box assets. It feels a bit heavy for users who only want a clean WYSIWYG editor without built-in icon sets or emoji data.
I tried to set emojiMenu={false} and tried filtering them out from suggestion items, but it seems the dependency is still being bundled. While I understand the convenience of having them included, I think it would be better to make them optional and lazily loaded.
For my current project, size is a critical factor, so I’ve decided not to use BlockNote for now. I really hope this can be improved in the future, as I do appreciate the core functionality of the library.
Thanks for listening!
Beta Was this translation helpful? Give feedback.
All reactions