-
-
Notifications
You must be signed in to change notification settings - Fork 637
Description
Is your feature request related to a problem? Please describe.
I'm trying to parse and manipulate data in a non-node runtime. It's in a Convex function (serverless browser-like environment, similar to deno / cloudflare worker / other v8-powered runtimes).
The ServerBlockNoteEditor tries to access things like "fs" and "events" which do not exist there. Trying to use BlockNoteEditor.create() directly used to work, until v0.38.0 introduced an import-time dependency on decode-named-character-reference which runs document.createElement at import time.
Describe the solution you'd like
Either remove the node dependencies from ServerBlockNoteEditor if they're not critical, or make a ServerlessBlockNoteEditor which is lightweight enough to be loaded in serverless environments.
Describe alternatives you've considered
Remove the import-time dependency on decode-named-character-reference (will file separately).
Additional context
Tracking it for Collaborative Document Editor Convex component here: get-convex/prosemirror-sync#187
Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖