Closed holtwick closed 3 years ago
Yeah, would be great. We already found this issue with y-prosemirror when using vite :/
Indeed, that was an issue I ran into as well, which keeps me from migrating my project to vite yet...
Yes! Vite is amazing. ⚡️
I’m not sure about the npm init @tiptap/create
thing. I don’t know what tech stack we’d use for that. Vue 2, 3, React? Vanilla? And I don’t think it’s worth to maintain all of them. 😏
Vite is pretty easy to set up though, and the default tiptap example, too. But we need to get Vue 3 support ready and iron out other glitches, like the one with y-prosemirror for Vite support, and we definitely want that too. 😅
I provided a fix for https://github.com/yjs/y-prosemirror/issues/40 and can confirm it works smoothly on vite and your new vue3 support. Amazing work! Thanks.
@hanspagel I follow your argumentation and indeed, the create script is a not so important additional layer somebody needs to put work in. In general, it is all very self-explanatory.
@dmonad applied a fix to y-prosemirror and published the new npm. Until the dependencies are updated in tiptap it can be worked around by installing y-prosemirror in the own project as well. Due to its internal structure Vite will use this version then.
That’s great news! 🙌 We’ll release a fresh version with updated depencies in the next days.
released
As Vue3 supports comes closer ueberdosis/tiptap-next#85 , don't forget about Vite support. Cannot live without it any more ;)
Maybe a nice starter template would attract more users as well? Something like
npm init @tiptap/create
similar to https://vitejs.dev/guide/#browser-supportI tried to set up something myself, but it is not trivial yet.