Skip to content

liangyi-h5/plugin-vue2-jsx-vite5

Repository files navigation

plugin-vue2-jsx-vite5

Plug-in compatible with vite5 vue2 jsx syntax

vue version >= 2.7

⚠️

The official @vitejs/plugin-vue2-jsx is no longer maintained

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

About

Plug-in compatible with vite5 vue2 jsx syntax

Resources

License

Stars

Watchers

Forks

Packages

No packages published