1.0.2 • Published 2 years ago
@94ai/unplugin-vue-define-options v1.0.2
@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.