I made a Proof of concept @vite.dev plugin that allows transforming JSX/TSX files into real @svelte.dev components on import (+ HMR) using Mitosis by @steve8708.bsky.social. Mitosis supports many other frameworks, so it can be improved further. Code + Demo: github.com/az33zy/vite-...
Post
I'll have to check this out. I was thinking more about using it with existing component libraries where there isn't much framework-specific logic. This would help save a lot of time.
0 reposts0 likes
For sure! But I expect that at least some of those component libraries will rely on Svelte’s reactivity system and it would be helpful to be able to use it in the TSX files if that is the case
svelte.dev.svelte.js and .svelte.ts files • Docs • Svelte.svelte.js and .svelte.ts files • Svelte documentation