rollup-plugin-htmlvue
JSON →Rollup plugin (v1.2.2, last updated Jan 2024) that imports HTML snippets, SVGs, and other XML-parseable markup as Vue single-file components. Works with both Vue 2 and 3 by generating a virtual SFC that is then compiled by rollup-plugin-vue. Key differentiators: supports functional components and v-once/v-pre directives via options; include/exclude patterns using rollup/pluginutils; ships TypeScript types. Unlike generic raw-loaders, this plugin allows using SVG files directly as Vue components with full reactivity support.
Traffic · last 30 days ↓86% vs prev 7d
total hits 15
actors 3 distinct systems
last hit 5d ago AhrefsBot
top countries 🇨🇦 Canada · 🇺🇸 United States · AR · 🇬🇧 United Kingdom
Resources
API endpoints
full doc /v1/registry/rollup-plugin-htmlvue