plugin-vue2-jsx
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i plugin-vue2-jsx

Weekly Downloads

4

Version

0.0.1

License

ISC

Unpacked Size

26.6 kB

Total Files

7

Last publish

Collaborators

  • chenkl