GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - unplugin/unplugin-vue: ✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup, Webpack and more.

BranchesTags
Open more actions menu

Latest commit

 

History

609 Commits
609 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
examples
examples
 
 
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 

Repository files navigation

unplugin-vue

npm version npm downloads Unit Test

Transform Vue 3 SFC to JavaScript.

Features

  • ⚡️ Support Vite, Webpack, Vue CLI, Rollup, esbuild and more, powered by unplugin.
  • ✨ Support <script setup> and macros.
  • 🔥 Hot module replacement (HMR) support for Vite.
  • 🔄 Sync code from @vitejs/plugin-vue periodically. Currently based on @vitejs/[email protected].

Installation

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

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


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

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


Rolldown / tsdown
// rolldown.config.js / tsdown.config.ts
import Vue from 'unplugin-vue/rolldown'

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


esbuild
import { build } from 'esbuild'
import Vue from 'unplugin-vue/esbuild'

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


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

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


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

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


Farm
// farm.config.ts
import Vue from 'unplugin-vue/farm'

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


Limitations

⚠️ HMR is not supported for Webpack, Vue CLI, and Rspack.

Who is using

  • Vue Macros - Explore and extend more macros and syntax sugar to Vue.
  • Vue DevTools - ⚙️ Browser devtools extension for debugging Vue.js applications.
  • Element Plus icon
  • Onu UI - Opinionated and lightweight UnoCSS ui library.
  • vue-components-lib-seed - A vue3.0 components library template.

Alternatives

  • @vitejs/plugin-vue - For Vite and Vue 3.
  • @vitejs/plugin-vue2 - For Vite and Vue 2.
  • unplugin-vue2 - For Vue 2.7+ and Vite, esbuild, Rollup, Webpack or more.
  • vue-loader - For Webpack.
  • esbuild-plugin-vue - For esbuild and Vue 3.
  • esbuild-vue - For esbuild and Vue 2.
  • vite-plugin-vue2 - For Vite and Vue 2.
  • rollup-plugin-vue - ⚠️ no longer maintained.

Thanks

  • Vite - Next generation frontend tooling. It's fast!
  • unplugin - Unified plugin system for Vite, Rollup, Webpack, and more
  • vite-plugin-vue - This project is inherited from it.

Sponsors

License

MIT License © 2021-PRESENT Kevin Deng

About

✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup, Webpack and more.

Topics

esbuildpluginrolluprspacksfcunpluginvuevuejswebpack

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

276 stars

Watchers

1 watching

Forks

16 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.