Skip to content
PluginStats

vite-plugin-require-transform weekly downloads statistics

By WarrenJones · npm · Vite plugins

A plugin for vite that convert from require syntax to import that compat for es module.

View on npm Fresh · Oct 17, 2026

vite-plugin-require-transform has 15,268 recorded weekly downloads on npm, a decrease of 54.6% over the past 30 days.

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

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

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

Weekly downloads
15,268
Official API · Oct 17, 2026
7-day growth
-56.6%
-19.9K weekly downloads
30-day growth
-54.6%
-18.4K weekly downloads
90-day growth
-71.4%
-38.1K weekly downloads
Rank
#819
Among tracked npm listings

About vite-plugin-require-transform

vite-plugin-require-transform

A vite plugin that converts the code from require syntax to import

Why vite-plugin-require-transform

"require syntax" is supported when develop with Webpack cause it transformed it internally.

but when serve with Vite error "require is not defined" will show up.

This plugin amis to support require when serve with vite.

Install

or

Usage

What vite-plugin-require-transform actually do

you can also check the test directory to see the cases.

case 1:

will be transformed into

case 2:

example A

will be transformed into

example B

will be transformed into

example C

will be transformed into

case 3:

when exist a case as same fileName,different extensions,by default it would be error cause the plugin only capture the path without extension.

so we need to make a importPathHandler to deal with the situtation

will be transformed into

Description from the npm listing.

  • vite
  • vite-plugin
  • require

Where vite-plugin-require-transform 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 41, #19 (overall #819)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 7, #13 (overall #133)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

vite-plugin-require-transform weekly downloads on npm, last 90 days: 15,268 weekly downloads as of Oct 17, 2026, -71.4% over 90 days.vite-plugin-require-transformWeekly downloads on npm · Last 90 days15,268downloads / week-71.4% over 90 days010K20K30K40K50K60KJul 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-require-transform weekly downloads on npm, last 90 days: 15,268 weekly downloads as of Oct 17, 2026, -71.4% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-require-transform weekly downloads growth on npm: -56.6% over 7 days, -54.6% over 30 days, -71.4% over 90 days.vite-plugin-require-transformWeekly downloads growth on npm15,268downloads / week now7-day growth-19,933 weekly downloads-56.6%30-day growth-18,383 weekly downloads-54.6%90-day growth-38,118 weekly downloads-71.4%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-require-transform weekly downloads growth on npm: -56.6% over 7 days, -54.6% over 30 days, -71.4% over 90 days.
PNG SVG

Ranking history

vite-plugin-require-transform npm ranking history: currently #819 (by weekly downloads).vite-plugin-require-transformnpm ranking · by weekly downloads · Last 90 days#819current rank#817#818#819#820#821Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-require-transform npm ranking history: currently #819 (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-require-transform
Date (UTC)Weekly downloadsChange vs. previous
15,268-1.9K
17,187+218
16,969-7.6K
24,583-8.8K
33,4200
33,420-1.6K
35,061-140
35,201+106
35,095+1.5K
33,562+487
33,075+934
32,141-10K
42,135-112
42,247—

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-require-transform. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.