1.1.0 • Published 3 years ago

vite-svelte-jsx v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vite-svelte-jsx npm

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.