plugin-vue2-jsx
v0.0.1
Published
Plug-in compatible with vite5 vue2 jsx syntax
Downloads
4
Maintainers
Readme
plugin-vue2-jsx-vite5
兼容 vite5 vue2 jsx 语法的插件
vue version >= 2.7
⚠️
官方的 @vitejs/plugin-vue2-jsx 已经不维护了
Installation
npm plugin-vue2-jsx-vite5
Usage
vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue2'
import vue2Jsx from 'plugin-vue2-jsx-vite5'
export default defineConfig({
base: "/",
plugins: [
vue(),
vue2Jsx({
include: [/\.[jt]sx$/, /\.vue$/]
})
]
})