Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

vue-jsx-vapor

NPM version

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()],
})


关于 About

Vapor Mode of Vue JSX

语言 Languages

Rust79.5%
TypeScript17.6%
JavaScript2.9%
HTML0.0%
Vue0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
565
Total Commits
峰值: 43次/周
Less
More

核心贡献者 Contributors