feat: Svelte renderer#30
feat: Svelte renderer#30elliott-with-the-longest-name-on-github wants to merge 11 commits intocomarkdown:mainfrom
Conversation
|
@elliott-with-the-longest-name-on-github is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thanks for the PR @elliott-with-the-longest-name-on-github ❤️ I tried to create an example in examples directory, but it seems that users need to enable What do you think about this? What if we create I pushed my the example to PR |
|
@farnabaz ahhh yeah, you're right -- I meant to fix that. The subpath export is the right solution. I'll get it put together |
Adds a Svelte renderer.
This works very similarly to React, but has two exports -- one that works today (
Comark) and one that works tomorrow (ComarkAsync). Eventually (when async is stable), we'd get rid of the sync version and ship the async version as the only one. This would have to happen in a subsequent major.Originally I had this set up as a
comark/sveltepackage, but I couldn't figure out how to get it to play nicely with the bundling setup there. (Svelte libraries shouldn't be bundled, but we do typically run preprocessing on them to created.tsfiles.) I also wanted to set up both SSR and browser tests so we can verify the rendering behavior on both ends.Happy to redesign and move things around.