Skip to content
PluginStats

@vitejs/plugin-vue weekly downloads statistics

By vitejs (9 listings) · npm · Vite plugins

The official plugin for Vue SFC support in Vite.

View on npm Fresh · Oct 17, 2026

@vitejs/plugin-vue has 5,050,176 recorded weekly downloads on npm, a decrease of 39.4% over the past 30 days.

It ranks #129 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -35.6%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
5,050,176
Official API · Oct 17, 2026
7-day growth
-50.4%
-5.1M weekly downloads
30-day growth
-39.4%
-3.3M weekly downloads
90-day growth
-35.6%
-2.8M weekly downloads
Rank
#129
Among tracked npm listings

About @vitejs/plugin-vue

@vitejs/plugin-vue

Note: as of vue 3.2.13+ and @vitejs/plugin-vue 1.9.0+, @vue/compiler-sfc is no longer required as a peer dependency.

For JSX / TSX support, @vitejs/plugin-vue-jsx is also needed.

Options

Asset URL handling

When @vitejs/plugin-vue compiles the blocks in SFCs, it also converts any encountered asset URLs into ESM imports.

For example, the following template snippet:

Is the same as:

By default the following tag/attribute combinations are transformed, and can be configured using the template.transformAssetUrls option.

Note that only attribute values that are static strings are transformed. Otherwise, you'd need to import the asset manually, e.g. import imgUrl from '../image.png'.

Example for passing options to vue/compiler-sfc:

Example for transforming custom blocks

Create a file named Demo.vue, add lang="yaml" to the blocks, then you can use the syntax of YAML:

message is mounted on the i18n property of the component instance, you can use like this:

Using Vue SFCs as Custom Elements

Requires vue@^3.2.0 & @vitejs/plugin-vue@^1.4.0

Vue 3.2 introduces the defineCustomElement method, which works with SFCs. By default, tags inside SFCs are extracted and merged into CSS files during build. However when shipping a library of custom elements, it may be desirable to inline the styles as JavaScript strings and inject them into the custom elements' shadow root instead.

Starting in 1.4.0, files ending with *.ce.vue will be compiled in "custom elements" mode: its tags are compiled into inlined CSS strings and attached to the component as its styles property:

Note in custom elements mode there is no need to use since the CSS is already scoped inside the shadow DOM.

The customElement plugin option can be used to configure the behavior:

• { customElement: true } will import all *.vue files in custom element mode. • Use a string or regex pattern to change how files should be loaded as Custom Elements (this check is applied after include and exclude matches).

License

MIT

Description from the npm listing.

  • vite
  • vite-plugin
  • vue

Where @vitejs/plugin-vue 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.

All npm2,256 listings · 113 pages · page 7, #9 (overall #129)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 1, #3 (overall #3)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

@vitejs/plugin-vue weekly downloads on npm, last 90 days: 5,050,176 weekly downloads as of Oct 17, 2026, -35.6% over 90 days.@vitejs/plugin-vueWeekly downloads on npm · Last 90 days5,050,176downloads / week-35.6% over 90 days4M5M6M7M8M9M10M11M12MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
@vitejs/plugin-vue weekly downloads on npm, last 90 days: 5,050,176 weekly downloads as of Oct 17, 2026, -35.6% over 90 days.
PNG SVG

7/30/90-day growth

@vitejs/plugin-vue weekly downloads growth on npm: -50.4% over 7 days, -39.4% over 30 days, -35.6% over 90 days.@vitejs/plugin-vueWeekly downloads growth on npm5,050,176downloads / week now7-day growth-5,136,506 weekly downlo…-50.4%30-day growth-3,277,861 weekly downlo…-39.4%90-day growth-2,791,445 weekly downlo…-35.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@vitejs/plugin-vue weekly downloads growth on npm: -50.4% over 7 days, -39.4% over 30 days, -35.6% over 90 days.
PNG SVG

Ranking history

@vitejs/plugin-vue npm ranking history: currently #129 (by weekly downloads).@vitejs/plugin-vuenpm ranking · by weekly downloads · Last 90 days#129current rank#127#128#129#130#131Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@vitejs/plugin-vue npm ranking history: currently #129 (by weekly downloads).
PNG SVG

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 (121)
Recent weekly downloads observations for @vitejs/plugin-vue
Date (UTC)Weekly downloadsChange vs. previous
5,050,176-1.1M
6,119,089+91.8K
6,027,337-2.1M
8,152,718-2.1M
10,244,3420
10,244,342-3K
10,247,295+60.6K
10,186,682+78.6K
10,108,033+109.3K
9,998,744+97K
9,901,792+37.3K
9,864,499-2M
11,855,938-16.3K
11,872,190—

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/@vitejs/plugin-vue. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.