1.0.5 • Published 3 years ago

vite-plugin-injs-jsx v1.0.5

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

vite-plugin-injs-jsx

convert JSX code in JS file

Install

npm i vite-plugin-injs-jsx

Usage

import { defineConfig } from 'vite'
import transformJsxInJs from 'vite-plugin-injs-jsx'

export default defineConfig({
  plugins: [transformJsxInJs()]
})

Options

include

Type: string [] Default: [] Files that need to be converted to JSX

jsxOptions

Type: Object The options for @vue/babel-preset-jsx.

babelrc

Type: Object Babel converts JSX presets and plug-ins. The default is Vue's JSX preset. JSX plug-in that can be configured as react