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
Imported by:
node_modules/.pnpm/@blocknote+core@0.33.0_@types+hast@3.0.4/node_modules/@blocknote/core/dist/blocknote.js
node_modules/.pnpm/@blocknote+react@0.33.0_@ty_e6d97ba653bcf8c3995d081f5f7b02b6/node_modules/@blocknote/react/dist/blocknote-react.js
I have emoji picker off but it's still imported, so I'm guessing there's no easy way to not import the emoji picker?
To reproduce: just import standard blocknote view in a Vite (with Rollup) package and do vite build
<BlockNoteView
emojiPicker={false}
ref={ref}
Misc
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.jsonRendered: 144.67 KB which is actually 1.37%
node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.jsI have emoji picker off but it's still imported, so I'm guessing there's no easy way to not import the emoji picker?
To reproduce: just import standard blocknote view in a Vite (with Rollup) package and do
vite buildMisc