vue-jsx-vapor
vue-jsx-vapor
Vapor Mode of Vue JSX.
Features
- ⚡️ High Performance: It has the same performance as Vue Vapor!
- ⚒️ Directives: Full support for all Vue built-in directives in JSX syntax.
- ✨ Macros: Support most macros of Vue, Friendly to JSX.
- 🦀 Rust Compiler: Powered by Oxc, 35× faster (Virtual DOM) and 50× faster (Vapor) than Babel.
- 🦾 Type Safe: Provide Volar plugin support by install TS Macro (VSCode plugin).
- ⚙️ ESLint Integration: Includes an ESLint plugin for automatic formatting of directives and macros.
Installation
npm i vue-jsx-vapor
Usage
Vite
// vite.config.ts
import VueJsxVapor from 'vue-jsx-vapor/vite'
export default defineConfig({
plugins: [VueJsxVapor()],
})
Example: playground/
Rollup
// rollup.config.js
import VueJsxVapor from 'vue-jsx-vapor/rollup'
export default {
plugins: [VueJsxVapor()],
}
Webpack
// webpack.config.js
module.exports = {
/* ... */
plugins: [require('vue-jsx-vapor/webpack')()],
}
Nuxt
// nuxt.config.js
export default defineNuxtConfig({
modules: ['vue-jsx-vapor/nuxt'],
})
This module works for both Nuxt 2 and Nuxt Vite
Vue CLI
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [require('vue-jsx-vapor/webpack')()],
},
}
esbuild
// esbuild.config.js
import { build } from 'esbuild'
import VueJsxVapor from 'vue-jsx-vapor/esbuild'
build({
plugins: [VueJsxVapor()],
})
Parcel
Install parcel-transformer-vue-tsx and add it to your .parcelrc:
npm i -D parcel @parcel/config-default parcel-transformer-vue-tsx @vue-jsx-vapor/runtime
{
"extends": "@parcel/config-default",
"transformers": {
"*.tsx": ["parcel-transformer-vue-tsx", "..."]
}
}
If your project mixes Vue Vapor TSX with other TSX variants, use a more specific pattern such as *.vapor.tsx instead.
Related Packages
unplugin-image
A universal bundler plugin which imports JPG, PNG, GIF, SVG, and WebP files.
40,041
1
Version History
| Version | Released | License |
|---|---|---|
| 3.2.28 | MIT | |
| 3.2.27 | MIT | |
| 3.2.26 | MIT | |
| 3.2.25 | MIT | |
| 3.2.24 | MIT | |
| 3.2.23 | MIT | |
| 3.2.22 | MIT | |
| 3.2.21 | MIT | |
| 3.2.20 | MIT | |
| 3.2.19 | MIT | |
| 3.2.18 | MIT | |
| 3.2.17 | MIT | |
| 3.2.16 | MIT | |
| 3.2.15 | MIT | |
| 3.2.14 | MIT | |
| 3.2.13 | MIT | |
| 3.2.12 | MIT | |
| 3.2.11 | MIT | |
| 3.2.10 | MIT | |
| 3.2.9 | MIT | |
| 3.2.8 | MIT | |
| 3.2.7 | MIT | |
| 3.2.6 | MIT | |
| 3.2.5 | MIT | |
| 3.2.4 | MIT | |
| 3.2.3 | MIT | |
| 3.2.2 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.23 | MIT |
Showing the latest 30 of 97. See every release on npm
Pre-releases (6)
| Version | Released | License |
|---|---|---|
| 3.3.0-rc.4 | MIT | |
| 3.3.0-rc.3 | MIT | |
| 3.3.0-rc.2 | MIT | |
| 3.3.0-rc.1 | MIT | |
| 3.3.0-beta.1 | MIT | |
| 2.5.4-beta.1 | MIT |