vue-macros

Explore more macros and syntax sugar to Vue.
380,847 1,986
Install
npm install vue-macros
Latest Version:3.1.4
Vue:2 · 3
License:MIT
Last Updated:Oct 20, 2026
Links: GitHub  ·  npm
Maintainer: sxzz

Vue Macros

Explore more macros and syntax sugar to Vue.

NPM version

Features

  • ✨ Explore more macros and syntax sugar to Vue.
  • 💚 Supports both Vue 2.7 and Vue 3 out-of-the-box.
  • 🦾 Full TypeScript / Volar support.
  • ⚡️ Supports most bundlers powered by unplugin.
    • Vite, Nuxt
    • Webpack, Rspack, Vue CLI
    • Rollup
    • esbuild
    • and more...

Installation

npm i -D vue-macros

Usage

📜 Documentation

Sponsors

Contributors

💕 Thank you to all the contributors!

License

MIT License © 2022-PRESENT Kevin Deng

Related Packages

unplugin-vue-macros

Explore more macros and syntax sugar to Vue.

1,076,778 1,986
unplugin-vue-define-options

Add defineOptions macro for Vue .

2,726,476 1,986
@vue-macros/reactivity-transform

reactivityTransform feature from Vue Macros.

1,770,767 1,986
@vue-macros/define-props

defineProps feature from Vue Macros.

1,538,882 1,986
@vue-macros/hoist-static

hoistStatic feature from Vue Macros.

1,465,026 1,986

Version History

Version Released License
3.1.4 MIT
3.1.3 MIT
3.1.2 MIT
3.1.1 MIT
3.1.0 MIT
Pre-releases (25)
Version Released License
3.0.0-rc.0 MIT
3.0.0-beta.23 MIT
3.0.0-beta.22 MIT
3.0.0-beta.21 MIT
3.0.0-beta.20 MIT