**Describe the bug** Ever since 0.38.0, there is a dependency on `decode-named-character-reference` at import time for `BlockNoteEditor`, such that importing it causes `Uncaught ReferenceError: document is not defined` in environments where `document` doesn't exist, e.g. Convex functions. I also filed #2173 to track the broader ask of supporting serverless environments. **To Reproduce** https://github.com/get-convex/prosemirror-sync/pull/187 clone the repo, then `npm i && npm run dev` - it should successfully deploy to Convex. After upgrading to 0.38, it fails. **Misc** - Node version:v20.19.5 - Package manager:npm - Browser:non-browser environment (Convex.dev) - [ ] I'm a [sponsor](https://www.blocknotejs.org/pricing) and would appreciate if you could look into this sooner than later 💖