rollup-plugin-htmlvue

JSON →
library 1.2.2 ·javascript
verified May 1, 2026

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.

total hits 15
actors 3 distinct systems
last hit 5d ago AhrefsBot
GPTBot
5
ClaudeBot
1
Humans
1

top countries 🇨🇦 Canada · 🇺🇸 United States · AR · 🇬🇧 United Kingdom