vite-plugin-svg-loader

JSON →
library 1.0.0 ·javascript
verified Apr 27, 2026

A Vite plugin for loading SVG files as objects or raw strings, enabling easy manipulation and embedding of SVGs in Vite-based projects. Current stable version is 1.0.0, released for Vite 2.x. It differs from alternatives like vite-svg-loader by providing query parameters (?row, ?url) for raw or URL import modes. The plugin exports SVG files as parsed JSON objects (tag, attrs, children) by default, which is useful for custom rendering. Requires Vite >2.0.0-0 as a peer dependency and ships TypeScript types.

total hits 10
actors 2 distinct systems
last hit 6d ago human
GPTBot
5
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · DZ · 🇸🇬 Singapore