vite-plugin-injs-jsx
v1.0.5
Published
convert JSX code in JS file, The default is Vue JSX. Parameters can be passed in and configured as react JSX
Downloads
3
Maintainers
Readme
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