Unplugin Vue 2 Script Setup
JSON →The `unplugin-vue2-script-setup` library provides a build-tool-agnostic solution to enable the `<script setup>` syntax from Vue 3 within Vue 2 applications. Powered by `unplugin`, it offers compatibility with various bundlers including Vite, Webpack, Rollup, esbuild, Nuxt, and Vue CLI. This package, currently at version 0.11.4, allows developers to write Vue 2 components with a more concise and modern API by transpiling the `<script setup>` block into standard Vue 2 options API. It requires `@vue/composition-api` to be installed and registered in your Vue application. As of Vue 2.7's release, which integrates `<script setup>` natively, this plugin has entered maintenance mode and is only necessary for Vue 2.6 or earlier projects, with an announced End of Life by the end of 2022.
Traffic · last 30 days ↓45% vs prev 7d
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇵🇱 Poland