Skip to content
PluginStats

vite-plugin-treat-umd-as-commonjs weekly downloads statistics

By pakholeung37 (2 listings) · npm · Vite plugins

resolve some edge cases when using requireJS/amd in browser with vite

View on npm Fresh · Oct 17, 2026

vite-plugin-treat-umd-as-commonjs has 5,075 recorded weekly downloads on npm, a decrease of 25.6% over the past 30 days.

It ranks #1087 of 2,251 tracked npm listings by weekly downloads.

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

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

Weekly downloads
5,075
Official API · Oct 17, 2026
7-day growth
-43.8%
-4K weekly downloads
30-day growth
-25.6%
-1.8K weekly downloads
90-day growth
-31.8%
-2.4K weekly downloads
Rank
#1087
Among tracked npm listings

About vite-plugin-treat-umd-as-commonjs

vite-plugin-treat-umd-as-commonjs

Make code runs when using requireJS/amd in browser with vite. This plugin is for a paticular edge case. check RequireJS environment in browser will break the UMD module conversion

Usage

It will simple add var define = false; in modules from node_modules by default which avoid the browser requireJS/amd environment to register the module to amd. You can also specifically include or exclude pattern.

Options

License

MIT

Description from the npm listing.

  • vite
  • vite-plugin
  • commonjs
  • cjs
  • umd
  • requirejs
  • require-js
  • amd

Where vite-plugin-treat-umd-as-commonjs 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,248 listings · 113 pages · page 55, #7 (overall #1087)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 10, #16 (overall #196)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

vite-plugin-treat-umd-as-commonjs weekly downloads on npm, last 90 days: 5,075 weekly downloads as of Oct 17, 2026, -31.8% over 90 days.vite-plugin-treat-umd-as-commonjsWeekly downloads on npm · Last 90 days5,075downloads / week-31.8% over 90 days02K4K6K8K10K12KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
vite-plugin-treat-umd-as-commonjs weekly downloads on npm, last 90 days: 5,075 weekly downloads as of Oct 17, 2026, -31.8% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-treat-umd-as-commonjs weekly downloads growth on npm: -43.8% over 7 days, -25.6% over 30 days, -31.8% over 90 days.vite-plugin-treat-umd-as-commonjsWeekly downloads growth on npm5,075downloads / week now7-day growth-3,960 weekly downloads-43.8%30-day growth-1,750 weekly downloads-25.6%90-day growth-2,364 weekly downloads-31.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-treat-umd-as-commonjs weekly downloads growth on npm: -43.8% over 7 days, -25.6% over 30 days, -31.8% over 90 days.
PNG SVG

Ranking history

vite-plugin-treat-umd-as-commonjs npm ranking history: currently #1087 (by weekly downloads).vite-plugin-treat-umd-as-commonjsnpm ranking · by weekly downloads · Last 90 days#1087current rank#1085#1086#1087#1088#1089Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-treat-umd-as-commonjs npm ranking history: currently #1087 (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 vite-plugin-treat-umd-as-commonjs
Date (UTC)Weekly downloadsChange vs. previous
5,075-778
5,853+457
5,396-1.8K
7,241-2.3K
9,5840
9,584+529
9,055+20
9,035+39
8,996-136
9,132-420
9,552+370
9,182-1.8K
10,962+184
10,778—

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-treat-umd-as-commonjs. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.