Unplugin Vue 2 Script Setup

JSON →
library 0.11.4 ·javascript maintenance
verified May 27, 2026

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.

total hits 224
actors 9 distinct systems
last hit 23h ago human
ByteDance
9
PerplexityBot
6
GPTBot
5
MetaBot
4
Script
1
Search engines
1
Humans
184

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇵🇱 Poland