TeemuKoivisto / prosemirror-dev-toolkit

Injectable developer tools for ProseMirror rich-text editors implemented in Svelte and TypeScript.
https://teemukoivisto.github.io/prosemirror-dev-toolkit/
MIT License
117 stars 6 forks source link

Bundle jsondiffpatch and remove chalk #12

Closed ocavue closed 2 years ago

ocavue commented 2 years ago

Bundles jsondiffpatch into prosemirror-dev-toolkit and removed chalk requirement from the bundled output. This frees us from configuring bundlers when using prosemirror-dev-toolkit. That's also why I removed related topic in README.

jsondiffpatch itself has a browser-friendly UMD version, which doesn't need chalk. I used the same tech from jsondiffpatch to remove chalk from the bundle files.

TeemuKoivisto commented 2 years ago

Awesome 🚀 ! What a pain in the ass that jsondiffpatch has been. I tested the build and seems to work, I'll publish a new version. Thanks a lot.

ocavue commented 2 years ago

Great! Awesome work by the way. I'm looking forward to switching the underlying of @remirror/dev from prosemirror-dev-tools to prosemirror-dev-toolkit.