1.0.2 • Published 8 months ago

@94ai/unplugin-vue-define-options v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@94ai/unplugin-vue-define-options

📜 Documentation

Options API can be declared using the defineOptions in <script setup>, specifically to be able to set name, props, emits, and render inside of one function.

unplugin-vue-define-options/vite cannot config defineCompontent import from vue-demi, @94ai/unplugin-vue-define-options export defineCompontent from 'vue-demi'

use vue-demi to compatible vue2 or 3.

Features

  • ✨ With this macro, you can use Options API in Vue <script setup>.
  • 💚 Supports both Vue 2.7 and Vue 3 out-of-the-box.
  • 🦾 Full TypeScript support.
  • ⚡️ Supports Vite, Nuxt, Webpack, Vue CLI, Rollup 3, esbuild and more, powered by unplugin.

See Also

License

MIT License © 2022-PRESENT 三咲智子 zoujiahe