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.
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.
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.
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.