sveltejs / sites

Monorepo for the sites in the Svelte ecosystem
https://svelte.dev
MIT License
286 stars 123 forks source link

Upgrade to codemirror 6 #388

Open benmccann opened 1 year ago

benmccann commented 1 year ago

I got it partially done, but haven't had time to finish. I would love some help

Here's the work-in-progress: https://github.com/sveltejs/sites/tree/codemirror-6

Please feel free to send PRs against this branch

A couple things to do:

Alternatively, we could also try replacing the whole REPL with sandpack or web containers, but I think we'd have a harder time using npm dependencies and startup may be slower.

benmccann commented 1 year ago

@PuruVJ you also took a stab at this, right? It sounds like you got further than I did

You mentioned handlebars mode being the only thing you didn't figure out. Perhaps https://codemirror.net/examples/mixed-language/ would be a useful reference as it seems to address that

benmccann commented 1 year ago

learn.svelte.dev now uses codemirror 6! https://github.com/sveltejs/learn.svelte.dev/search?q=codemirror