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 stale · no recent hits
total hits 14
actors 5 distinct systems
last hit 18d ago human
top countries 🇺🇸 United States · 🇨🇦 Canada · VN · 🇨🇳 China · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/vite-string-plugin
compatibility /v1/registry/vite-string-plugin/compatibility