Reduce bundle size of extension-drag-handle
#5787
RomainLanz
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Unfortunately the extension does need y-prosemirror in order to work in collaborative scenarios. And I don't see a way around that. 300Kb sounds like a lot to me, are you sure about that? Some should definitely be tree-shakable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hey there! 👋🏻
I noticed that
tiptap-pro/extension-drag-handle
includes a direct dependency ony-prosemirror
, which in turn depends onyjs
. This setup significantly increases the bundle size, even if collaborative features aren’t being used.Would it be possible to adjust the code for
@tiptap-pro/extension-drag-handle
to remove this direct dependency?Unfortunately, I can’t review the code myself as the package isn’t open-source. Thanks for considering!
Use Case
I want to avoid to bundle ~300Kb of extra JS.
Type
Other
Beta Was this translation helpful? Give feedback.
All reactions