vite-plugin-svelte-svg
JSON →Vite 4.x plugin (v2.3.0) to import SVG files as Svelte components, with optional SVGO optimization. It requires the `?component` suffix (or `?c`) to distinguish SVG components from plain SVG URLs, but this can be disabled via `requireSuffix: false`. The plugin is Svelte 3/4 compatible but does NOT support Svelte 5 or Vite 5. It ships TypeScript types. Releases are infrequent, with v2 being the current stable line. Alternatives include `svelte-svg` or manual import via `{@html}`.
Traffic · last 30 days ↓25% vs prev 7d
total hits 13
actors 4 distinct systems
last hit 6d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · VN
Resources
API endpoints
full doc /v1/registry/vite-plugin-svelte-svg