Vite Plugin Vue Type Imports

JSON →
library 0.2.5 ·javascript
verified May 27, 2026

vite-plugin-vue-type-imports is a Vite plugin designed to enable the use of imported TypeScript types directly within Vue's `defineProps` and `defineEmits` macros in Single File Components (SFCs). This addresses a common limitation in Vue 3's `<script setup>` where type imports are not natively processed for runtime props validation or type inference. The plugin supports both Vue 2.7+ and Vue 3.2.24+ projects. Currently at version 0.2.5, it is still in active development, indicating an irregular release cadence focused on feature enhancements and bug fixes. Its key differentiator is simplifying type management in complex Vue components by allowing external type definitions to be used seamlessly, although it has known limitations regarding advanced TypeScript features and specific import patterns.

total hits 15
actors 5 distinct systems
last hit 5d ago AhrefsBot
GPTBot
5
MetaBot
4
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France