Skip to content
PluginStats

vite-plugin-externalize-dependencies weekly downloads statistics

By MilanKovacic · npm · Vite plugins

A simplified plugin for Vite that allows you to exclude specific dependencies from the Vite bundle during development.

View on npm Fresh · Dec 6, 2026

vite-plugin-externalize-dependencies has 9,591 recorded weekly downloads on npm, a decrease of 2.7% over the past 30 days, ranking #1282 of 3,247 tracked listings.

Weekly downloads
9,591
Official API · Dec 5, 2026
7-day growth
+19.1%
+1.5K weekly downloads
30-day growth
-2.7%
-268 weekly downloads
90-day growth
-12.0%
-1.3K weekly downloads
Rank
#1282
▲ 38 in 7 days

About vite-plugin-externalize-dependencies

Vite Plugin Externalize Dependencies npm

A simplified plugin for Vite that allows you to exclude specific dependencies from the Vite bundle during development.

The following errors/warnings are supressed:

  • The entry point [moduleName] cannot be marked as external
  • Do not know how to load path: [namespace:moduleName]
  • Failed to resolve import [dependency] from [sourceFile]. Does the file exist?
  • The following dependencies are imported but could not be resolved: [dependency] (imported by [sourceFile])

Table of Contents

Installation

To install the plugin, use npm:

npm i vite-plugin-externalize-dependencies --save-dev

Usage

After installing the plugin, import it, and add it to Vite configuration:

import { defineConfig } from "vite";
import externalize from "vite-plugin-externalize-dependencies";

export default defineConfig({
  plugins: [
    externalize({
      externals: [
        "react", // Externalize "react", and all of its subexports (react/*), such as react/jsx-runtime
        /^external-.*/, // Externalize all modules starting with "external-"
        (moduleName) => moduleName.includes("external"), // Externalize all modules containing "external",
      ],
    }),
  ],
});

Modules can be externalized by name (exact match), by regex, or by a custom function (returning true to externalize the module). The plugin will automatically externalize all subexports of a module, such as react/jsx-runtime.

Requirements

The plugin is intended to be consumed by Vite.

Contributing and Development

Contributions are welcome! If you wish to contribute, you can use the following npm commands to help facilitate your development process:

  • dev: Serve index.html for development testing.
  • build: Build the plugin.
  • test: Run tests to verify expected outputs.

Use them as follows:

npm run dev
npm run build
npm run test

Please feel free to open a pull request with your changes or improvements.

Known Issues & limitations

This plugin is designed to work during development. For production, users should manually configure build.rollupOptions.external in Vite.

Support

If you encounter any problems or have any issues, please open a new issue in the GitHub repository.

License

This project is licensed under the MIT License.

Description from the npm listing.

  • vite
  • vite-plugin
  • externalize-dependencies
  • bundle-exclusion
  • import-maps
  • webpack-externals
  • rollup-externals
  • dependency-management

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-externalize-dependencies weekly downloads on npm, last 90 days: 9,591 weekly downloads as of Dec 5, 2026, -12.0% over 90 days.vite-plugin-externalize-dependenciesWeekly downloads on npm · Last 90 days9,591downloads / week-12.0% over 90 days02K4K6K8K10K12K14K16K18KSep 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-externalize-dependencies weekly downloads on npm, last 90 days: 9,591 weekly downloads as of Dec 5, 2026, -12.0% over 90 days.

7/30/90-day growth

vite-plugin-externalize-dependencies weekly downloads growth on npm: +19.1% over 7 days, -2.7% over 30 days, -12.0% over 90 days.vite-plugin-externalize-dependenciesWeekly downloads growth on npm9,591downloads / week now7-day growth+1,535 weekly downloads+19.1%30-day growth-268 weekly downloads-2.7%90-day growth-1,312 weekly downloads-12.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-externalize-dependencies weekly downloads growth on npm: +19.1% over 7 days, -2.7% over 30 days, -12.0% over 90 days.

Ranking history

vite-plugin-externalize-dependencies npm ranking history: currently #1282 (by weekly downloads).vite-plugin-externalize-dependenciesnpm ranking · by weekly downloads · Last 90 days#1282current rank#1050#1100#1150#1200#1250#1300#1350Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-externalize-dependencies npm ranking history: currently #1282 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 65, #2 (overall #1,282)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 12, #16 (overall #236)
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-externalize-dependencies
Date (UTC)Weekly downloadsChange vs. previous
9,591+99
9,492+308
9,184+421
8,763-434
9,197+505
8,692+745
7,947-109
8,056-61
8,117+323
7,794-490
8,284-293
8,577-155
8,732-608
9,340—

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-externalize-dependencies. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.