vite-svelte-jsx

Vite Svelte Jsx

A vite plugin to transpile svelte jsx

vite-svelte-jsx

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
    })
  ]
}

Options

See @vue/babel-plugin-jsx.

How to use

This plugin uses svelte-jsx under the hood.
Check the svelte-jsx documentation to check how to write svelte jsx code.

Top categories

Loading Svelte Themes