vite-plugin-externals weekly downloads statistics
By crcong · npm · Vite plugins
externals plugin for vite
vite-plugin-externals has 27,899 recorded weekly downloads on npm, a decrease of 69.4% over the past 30 days.
It ranks #680 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -72.3%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About vite-plugin-externals
vite-plugin-externals
English | 简体中文
use to external resources, like webpack externals, but only use in browser now.
Can be used in production mode without other rollup configuration.
but it will not take effect by default in commonjs, such as ssr.
Usage
Add it to vite.config.js
Warning: If you loaded production library in vite dev mode , may make HMR fail.
You can use disableInServe: true option to avoid transform in serve mode.
Eg.
How to work
transform source code of js file.
Warning: please use the plugin after converting to JS code, because the plugin only transform JS code. Eg.
If an error occurs, you can check whether the error is caused by the plugin order.
Configuration
disableInServe
disable transform in serve mode .
enforce
vite plugin ordering. Resolve plugin ordering cause unexpected error. Such as #21.
See https://vitejs.dev/guide/api-plugin.html#plugin-ordering.
filter
The files in node_modules are filtered by default, and only transform js/ts/vue/jsx/tsx file.
You can specify the filter function. Return true will be transform to external.
useWindow
set false, the window prefix will not be added.
Warning: If your module name has special characters, such as /, set useWindow option false, will throw error.
sourceMapOptions
The configuration item of the code sourcemap after code conversion. The library is magic-string.
Description from the npm listing.
- vite-plugin
- external
- externals
Where vite-plugin-externals 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 (121)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-externals. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.