Skip to content
PluginStats

unplugin-svg-vue-component weekly downloads statistics

By jaw52 · npm · Vite plugins

Use svg as vue components with support for both vue2.7 and vue3.x

View on npm Fresh · Oct 18, 2026

unplugin-svg-vue-component has 9,969 recorded weekly downloads on npm, a decrease of 39.2% over the past 30 days, ranking #962 of 2,322 tracked listings.

Weekly downloads
9,969
Official API · Oct 18, 2026
7-day growth
-50.6%
-10.2K weekly downloads
30-day growth
-39.2%
-6.4K weekly downloads
90-day growth
-61.4%
-15.9K weekly downloads
Rank
#962
Among tracked npm listings

About unplugin-svg-vue-component

unplugin-svg-vue-component

GitHub package.json version

Use SVG as vue components with support for both vue2.7 and vue3.x.

npm i -D unplugin-svg-vue-component

Usage

Vite
import svgPlugin from 'unplugin-svg-vue-component/vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    vue(),
    svgPlugin(),
  ],
})
<script setup lang="ts">
import MsgIcon from './msg.svg'

// OR
// import MsgIcon from './msg.svg?component'
</script>

<template>
  <MsgIcon />
</template>

Options

  • optimize: Disabled by default. Based on svgo
// https://github.com/svg/svgo
export default defineConfig({
  plugins: [
    vue2(),
    svgPlugin({ optimize: true }),
  ],
})

Used in TypeScript

First tsconfig configuration

{
  "compilerOptions": {
    "types": ["unplugin-svg-vue-component/client"]
  }
}

Then import the SVG using the following form to avoid ts errors

import MsgIcon from './msg.svg?component'

Acknowledgement

Integration of the following schemes

License

MIT

Description from the npm listing.

  • vite
  • svg-plugin
  • vite-plugin
  • vite-svg
  • vue2
  • vue3
  • vue

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

unplugin-svg-vue-component weekly downloads on npm, last 90 days: 9,969 weekly downloads as of Oct 18, 2026, -61.4% over 90 days.unplugin-svg-vue-componentWeekly downloads on npm · Last 90 days9,969downloads / week-61.4% over 90 days010K20K30K40KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
unplugin-svg-vue-component weekly downloads on npm, last 90 days: 9,969 weekly downloads as of Oct 18, 2026, -61.4% over 90 days.

7/30/90-day growth

unplugin-svg-vue-component weekly downloads growth on npm: -50.6% over 7 days, -39.2% over 30 days, -61.4% over 90 days.unplugin-svg-vue-componentWeekly downloads growth on npm9,969downloads / week now7-day growth-10,199 weekly downloads-50.6%30-day growth-6,419 weekly downloads-39.2%90-day growth-15,873 weekly downloads-61.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
unplugin-svg-vue-component weekly downloads growth on npm: -50.6% over 7 days, -39.2% over 30 days, -61.4% over 90 days.

Ranking history

unplugin-svg-vue-component npm ranking history: currently #962 (by weekly downloads).unplugin-svg-vue-componentnpm ranking · by weekly downloads · Last 90 days#962current rank#300#400#500#600#700#800#900#1000Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
unplugin-svg-vue-component npm ranking history: currently #962 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins253 listings · 13 pages · page 8, #20 (overall #160)
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 (543)
Recent weekly downloads observations for unplugin-svg-vue-component
Date (UTC)Weekly downloadsChange vs. previous
9,969-2.1K
12,111-907
13,018-1.3K
14,310-6K
20,310-5.3K
25,6470
25,647+5.5K
20,168+2.2K
17,943+644
17,299-1.2K
18,512-630
19,142-3.9K
23,069-8.6K
31,645—

Similar npm Vite plugins plugins

All 20 unplugin-svg-vue-component 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/unplugin-svg-vue-component. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.