You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vite Rollup Production build tree-shaking & Large Blocknote bundles #1870
Describe the bug
Just trying to prune down bundle sizes with Vite Rollup and in general tree shaking
Rendered: 497.25 KB which is actually 4.72% root/assets/native-48B9X9Wg.js/.../node_modules/.pnpm/@emoji-mart+data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json Rendered: 144.67 KB which is actually 1.37% node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js
The emoji picker is dynamically imported. So it should be "rendered" (i.e. available if it hits a path at runtime that requires it), but not actually downloaded by the user
@VCRafa, we do not plan on doing this anytime soon given that we need it to support emojis, is it actually downloading for you in the browser (as I described above)?
Activity
nperez0111 commentedon Jul 23, 2025
The emoji picker is dynamically imported. So it should be "rendered" (i.e. available if it hits a path at runtime that requires it), but not actually downloaded by the user
candidcalcifer commentedon Jul 23, 2025
okay thanks! so it's part of the bundle but 100% of the time it won't be sent over the wire?
nperez0111 commentedon Jul 24, 2025
It should not be, but you would have to validate that in your browser
VCRafa commentedon Aug 29, 2025
@nperez0111 do you plan to allow prune of the emoji-mart/data soon?
nperez0111 commentedon Aug 31, 2025
@VCRafa, we do not plan on doing this anytime soon given that we need it to support emojis, is it actually downloading for you in the browser (as I described above)?