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

1.4.5 • Public • Published

unplugin-vue-define-options npm

📜 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.

If you support this feature, feel free to hit like 👍 or comment on RFC Discussion. Thanks!

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

Sponsors

License

MIT License © 2022-PRESENT 三咲智子

/unplugin-vue-define-options/

    Package Sidebar

    Install

    npm i unplugin-vue-define-options

    Weekly Downloads

    28,575

    Version

    1.4.5

    License

    MIT

    Unpacked Size

    21.3 kB

    Total Files

    39

    Last publish

    Collaborators

    • sxzz