Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vapor Mode of Vue JSX

License

NotificationsYou must be signed in to change notification settings

vuejs/vue-jsx-vapor

Repository files navigation

NPM version

Vapor Mode of Vue JSX.

Features

  • ⚡️ High Performance: It has the same performance as Vue Vapor!
  • ⚒️ Directives: Support all build-in directives of Vue.
  • ✨ Macros: Support most macros of Vue, Friendly to JSX.
  • 🌈 Hot Module Replacement: Support functional components or defined by defineComponent.
  • 🦾 Type Safe: Provide Volar plugin support by install TS Macro (VSCode plugin).
  • ⚙️ ESLint: Provide an ESLint plugin for vue-jsx-vapor to automatically format code.

Installation

npm i vue-jsx-vapor

Usage

Vite
// vite.config.tsimportVueJsxVaporfrom'vue-jsx-vapor/vite'exportdefaultdefineConfig({plugins:[VueJsxVapor()],})

Example:playground/


Rollup
// rollup.config.jsimportVueJsxVaporfrom'vue-jsx-vapor/rollup'exportdefault{plugins:[VueJsxVapor()],}


Webpack
// webpack.config.jsmodule.exports={/* ... */plugins:[require('vue-jsx-vapor/webpack')()],}


Nuxt
// nuxt.config.jsexportdefaultdefineNuxtConfig({modules:['vue-jsx-vapor/nuxt'],})

This module works for both Nuxt 2 andNuxt Vite


Vue CLI
// vue.config.jsmodule.exports={configureWebpack:{plugins:[require('vue-jsx-vapor/webpack')()],},}


esbuild
// esbuild.config.jsimport{build}from'esbuild'importVueJsxVaporfrom'vue-jsx-vapor/esbuild'build({plugins:[VueJsxVapor()],})


About

Vapor Mode of Vue JSX

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp