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 · Dec 6, 2026

vite-plugin-svgr has 9,135,577 recorded weekly downloads on npm, an increase of 13.1% over the past 30 days, ranking #147 of 3,247 tracked listings.

Weekly downloads
9,135,577
Official API · Dec 5, 2026
7-day growth
+15.6%
+1.2M weekly downloads
30-day growth
+13.1%
+1.1M weekly downloads
90-day growth
+92.2%
+4.4M weekly downloads
Rank
#147
▲ 2 in 7 days

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: 9,135,577 weekly downloads as of Dec 5, 2026, +92.2% over 90 days.vite-plugin-svgrWeekly downloads on npm · Last 90 days9,135,577downloads / week+92.2% over 90 days02M4M6M8M10MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-svgr weekly downloads on npm, last 90 days: 9,135,577 weekly downloads as of Dec 5, 2026, +92.2% over 90 days.

7/30/90-day growth

vite-plugin-svgr weekly downloads growth on npm: +15.6% over 7 days, +13.1% over 30 days, +92.2% over 90 days.vite-plugin-svgrWeekly downloads growth on npm9,135,577downloads / week now7-day growth+1,233,601 weekly downlo…+15.6%30-day growth+1,059,075 weekly downlo…+13.1%90-day growth+4,381,858 weekly downlo…+92.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-svgr weekly downloads growth on npm: +15.6% over 7 days, +13.1% over 30 days, +92.2% over 90 days.

Ranking history

vite-plugin-svgr npm ranking history: currently #147 (by weekly downloads).vite-plugin-svgrnpm ranking · by weekly downloads · Last 90 days#147current rank#140#142#144#146#148#150#152Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-svgr npm ranking history: currently #147 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 8, #7 (overall #147)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 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 (170)
Recent weekly downloads observations for vite-plugin-svgr
Date (UTC)Weekly downloadsChange vs. previous
9,135,577+102.3K
9,033,266+393.4K
8,639,866+413.7K
8,226,180+160.8K
8,065,344+101.7K
7,963,686+70.3K
7,893,355-8.6K
7,901,976-96.1K
7,998,115-366K
8,364,113-357.9K
8,721,963-198.1K
8,920,082+16.2K
8,903,852-11.7K
8,915,560—

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 Dec 6, 2026. See the methodology.