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
In Svelte 5, .svelte.{js,ts} files support the Rune syntax transformations in addition to .svelte files
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