Skip to content
PluginStats

vite-plugin-svgr weekly downloads statistics

By pd4d10 · npm · Vite plugins

Vite plugin to transform SVGs into React components

View on npm Fresh · Oct 18, 2026

vite-plugin-svgr has 3,008,991 recorded weekly downloads on npm, a decrease of 38.9% over the past 30 days, ranking #149 of 2,322 tracked listings.

Weekly downloads
3,008,991
Official API · Oct 18, 2026
7-day growth
-47.4%
-2.7M weekly downloads
30-day growth
-38.9%
-1.9M weekly downloads
90-day growth
-42.6%
-2.2M weekly downloads
Rank
#149
Among tracked npm listings

About vite-plugin-svgr

vite-plugin-svgr

npm

Vite plugin to transform SVGs into React components. Uses svgr under the hood.

Installation

# npm
npm install --save-dev vite-plugin-svgr

# yarn
yarn add -D vite-plugin-svgr

# pnpm
pnpm add -D vite-plugin-svgr

Usage

// vite.config.js
import svgr from "vite-plugin-svgr";

export default {
  // ...
  plugins: [svgr()],
};

Then SVG files can be imported as React components:

import Logo from "./logo.svg?react";

If you are using TypeScript, there is also a declaration helper for better type inference. Add the following to vite-env.d.ts:

/// <reference types="vite-plugin-svgr/client" />
Options
svgr({
  // svgr options: https://react-svgr.com/docs/options/
  svgrOptions: {
    // ...
  },

  // esbuild options, to transform jsx to js
  esbuildOptions: {
    // ...
  },

  // oxc options, used by rolldown / vite 8+
  oxcOptions: {
    // ...
  },

  // A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should include.
  include: "**/*.svg?react",

  //  A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.
  exclude: "",
});

If you want to enable SVGO you can install @svgr/plugin-svgo and use following options to enable and configure it:

svgr({
  svgrOptions: {
    plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
    svgoConfig: {
      floatPrecision: 2,
    },
  },
  // ...
});

License

MIT

Description from the npm listing.

  • vite
  • vite-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-svgr weekly downloads on npm, last 90 days: 3,008,991 weekly downloads as of Oct 18, 2026, -42.6% over 90 days.vite-plugin-svgrWeekly downloads on npm · Last 90 days3,008,991downloads / week-42.6% over 90 days2M3M4M5M6M7MJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-svgr weekly downloads on npm, last 90 days: 3,008,991 weekly downloads as of Oct 18, 2026, -42.6% over 90 days.

7/30/90-day growth

vite-plugin-svgr weekly downloads growth on npm: -47.4% over 7 days, -38.9% over 30 days, -42.6% over 90 days.vite-plugin-svgrWeekly downloads growth on npm3,008,991downloads / week now7-day growth-2,711,015 weekly downlo…-47.4%30-day growth-1,913,130 weekly downlo…-38.9%90-day growth-2,235,126 weekly downlo…-42.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-svgr weekly downloads growth on npm: -47.4% over 7 days, -38.9% over 30 days, -42.6% over 90 days.

Ranking history

vite-plugin-svgr npm ranking history: currently #149 (by weekly downloads).vite-plugin-svgrnpm ranking · by weekly downloads · Last 90 days#149current rank#146#147#148#149#150#151Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-svgr npm ranking history: currently #149 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 8, #9 (overall #149)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 1, #8 (overall #8)
Vite plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (122)
Recent weekly downloads observations for vite-plugin-svgr
Date (UTC)Weekly downloadsChange vs. previous
3,008,991+314.7K
2,694,290-342.1K
3,036,390+31K
3,005,369-1.4M
4,361,635-1.3M
5,696,0820
5,696,082-23.9K
5,720,006-6.6K
5,726,566+37.1K
5,689,508+92.4K
5,597,066+96.4K
5,500,627+61.3K
5,439,314-1.3M
6,740,592—

Similar npm Vite plugins plugins

All 20 vite-plugin-svgr alternatives

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-svgr. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.