@94ai/unplugin-vue-define-options
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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

/@94ai/unplugin-vue-define-options/

    Package Sidebar

    Install

    npm i @94ai/unplugin-vue-define-options

    Weekly Downloads

    6

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    18.4 kB

    Total Files

    33

    Last publish

    Collaborators

    • louislxx
    • nfai