vite-string-plugin

JSON →
library 2.0.3 ·javascript
verified Apr 27, 2026

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.

total hits 17
actors 3 distinct systems
last hit 3d ago Bingbot
GPTBot
5
Search engines
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · PT