vite-string-plugin
JSON →A zero-dependency Vite plugin that allows importing files (SVG, MD, XML, TXT, or custom extensions) as raw strings at build time. Current stable version is 2.0.3 as of April 2025, requiring Vite >= 6.3.0 (or compatible rolldown-vite) due to hook filter API usage introduced in v2.0.0. It is more lightweight than generic file-loading plugins like rollup-plugin-string or vite-plugin-raw, but limited to string output. TypeScript type declarations are provided via a separate types entry point for automatic module augmentation of default file extensions.
Traffic · last 30 days ↓62% vs prev 7d
total hits 17
actors 3 distinct systems
last hit 3d ago Bingbot
top countries 🇨🇦 Canada · 🇺🇸 United States · PT
Resources
API endpoints
full doc /v1/registry/vite-string-plugin