unplugin-vue-jsx

A Vue JSX plugin.
92,628 32
Install
npm install unplugin-vue-jsx
Latest Version:0.10.0
Vue:3
Older releases:2
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: sxzz

unplugin-vue-jsx

npm version npm downloads Unit Test

  • Vue JSX plugin for Vue 3.
  • Supports Rollup, Rolldown, Vite, esbuild, Webpack and more.

Installation

npm i -D unplugin-vue-jsx
Vite
// vite.config.ts
import VueJsx from 'unplugin-vue-jsx/vite'

export default defineConfig({
  plugins: [VueJsx()],
})


Rollup
// rollup.config.js
import VueJsx from 'unplugin-vue-jsx/rollup'

export default {
  plugins: [VueJsx()],
}


Rolldown
// rolldown.config.js
import VueJsx from 'unplugin-vue-jsx/rolldown'

export default {
  plugins: [VueJsx()],
}


esbuild
import { build } from 'esbuild'
import VueJsx from 'unplugin-vue-jsx/esbuild'

build({
  plugins: [VueJsx()],
})


Webpack
// webpack.config.js
import VueJsx from 'unplugin-vue-jsx/webpack'

export default {
  /* ... */
  plugins: [VueJsx()],
}


Rspack
// rspack.config.js
import VueJsx from 'unplugin-vue-jsx/rspack'

export default {
  /* ... */
  plugins: [VueJsx()],
}


Configuration

The following show the default values of the configuration.

VueJsx({
  // filters for transforming targets
  include: [/\.[jt]sx$/],
  exclude: [/node_modules/],
  sourceMap: true,

  // See https://babeljs.io/docs/babel-parser#options
  parserOpts: {
    plugins: [
      /* ... */
    ],
  },

  // Use extra babel plugins
  babelPlugins: [],

  // Extra options from Vue Babel plugin: https://github.com/vuejs/babel-plugin-jsx#options
  // ...
})

Sponsors

License

MIT License © 2022-PRESENT Kevin Deng

Related Packages

unplugin-vue-named-export

Named export for Vue SFC.

9,463 22
vite-plugin-resize-image

📦 📦 unplugin compression Image Compression plugin based on squoosh and sharp

682
unplugin-lightningcss

Lightning CSS integration for Vite, Rollup, esbuild, Webpack, Vue CLI, and more.

1,880,181 29
unplugin-element-plus

Import Element Plus on demand. Support Vite, Webpack, Vue CLI, Rollup and esbuil...

1,523,768 252
unplugin-vue

Transform Vue 3 SFC to JavaScript.

1,075,622 274

Version History

Version Released License
0.10.0 MIT
0.9.0 MIT
0.8.1 MIT
0.8.0 MIT
0.7.0 MIT