vite-plugin-react-rich-svg weekly downloads statistics
By iGoodie · npm · Vite plugins
Seamless SVG loader with versatile import options! (Such as React component, dataURI and raw html code)
vite-plugin-react-rich-svg has 13,946 recorded weekly downloads on npm, an increase of 47.7% over the past 30 days.
It ranks #842 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +365%.
PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.
About vite-plugin-react-rich-svg
Vite Plugin: React Rich SVG
Seamless SVG loader with versatile import options (see demo page)
Description
A vite plugin that handles SVG loading with zero-config effort.
It handles loading raw (html string), inline data uri (data:svg+xml,...) and SVGR Component (with easily usable SVGO options) imports easily!
This plugin is heavily inspired by vite-svg-loader, which is an SVG loading Vite plugin for Vue. It is one of my favourites. Thanks to everyone contributed to it! 💜
How to use?
1. Use your favorite package manager to install as dependency
2. Include it in your vite.config.ts
3. If you're using Typescript, you might want to include the typings under vite-env.d.ts:
4. Start importing your SVGs! Happy coding!
Plugin Configurations
include option
Acts as a whitelist predicate for the files you want to be processed.
exclude option
Acts as a blacklist predicate for the files you want to be ignored.
componentLoaderOptions option
• svgrConfig = Options used while running SVGR on the original svg code/asset (See SVGR Options) • oxcConfig = Options passed to Vite's Oxc transform when generating JavaScript from the SVGR output (See Vite's transformWithOxc API)
rawLoaderOptions option
• svgoEnabled = Enables SVGO optimizations • svgoConfig = Options used while running SVGO optimizations on the original SVG asset (See SVGO Options)
base64LoaderOptions option
• svgoEnabled = Enables SVGO optimizations • svgoConfig = Options used while running SVGO optimizations on the original SVG asset (See SVGO Options)
urlLoaderOptions option
• svgoEnabled = Enables SVGO optimizations • svgoConfig = Options used while running SVGO optimizations on the original SVG asset (See SVGO Options)
SVGO, Prettier & Other SVGR Plugins
SVGO and Prettier are supported out of the box. Just mark them in the svgrConfig and they'll start working.
You can also include your own SVGR plugins as you desire!
License
© 2024 Taha Anılcan Metinyurt (iGoodie)
For any part of this work for which the license is applicable, this work is licensed under the Attribution-ShareAlike 4.0 International license. (See LICENSE).
Description from the npm listing.
- vite-plugin
- react
- svg
- svgr
- rich
- import
- prettier
Where vite-plugin-react-rich-svg sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (542)Similar npm Vite plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-react-rich-svg. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.