YjsPlugin dynamic provider import + Y-Sweet provider integration #4610
apolubek
started this conversation in
Feature Requests
Replies: 1 comment
-
That looks good. Feel free to open a PR! |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
💡 Ideas for YjsPlugin improvements
It would be nice for
YjsPlugin
to dynamically import provider dependencies depending on the provider options passed toYjsPlugin.configure
as for now all of them need to be installed even if not used.E.g if just
webrtc
provider is used,@hocuspocus/provider
needs to be installed anyways and vice-versa (it's because all providers are exported https://github.com/udecode/plate/blob/main/packages/yjs/src/lib/providers/index.ts and their libraries imported when importing this file fromBaseYjsPlugin.ts
).I also created an Y-Sweet provider based on already available providers, so you can add it if you want to extend Yjs providers config.
Beta Was this translation helpful? Give feedback.
All reactions