Provides Svelte JSX & TSX support.
// vite.config.js
import svelteJsx from 'vite-svelte-jsx'
export default {
plugins: [
svelteJsx({
// options are passed on to @vue/babel-plugin-jsx
})
]
}
This plugin uses svelte-jsx under the hood.
Check the svelte-jsx documentation to check how to write svelte jsx code.