esbuild-svg

JSON →
library 1.0.3 ·javascript
verified May 1, 2026

esbuild-svg 1.0.3 is an esbuild plugin that transforms SVG files into JSX React components using SVGR under the hood. It supports both default and named exports, configurable SVGO optimization, and provides a publicPath feature via a special import suffix. Currently stable, it releases occasionally. Compared to alternatives like @svgr/webpack or vite-plugin-svgr, it is tailored specifically for esbuild and integrates tightly with its publicPath configuration. It ships TypeScript definitions and requires React (peer dependency) for JSX rendering.

total hits 7
actors 2 distinct systems
last hit 4d ago AhrefsBot
GPTBot
2
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇮🇹 Italy · 🇩🇪 Germany