Skip to content
PluginStats

webpack-virtual-modules weekly downloads statistics

By sysgears (3 listings) · npm · Webpack plugins

Webpack Virtual Modules

View on npm Fresh · Oct 17, 2026

webpack-virtual-modules has 25,679,806 recorded weekly downloads on npm, a decrease of 45.5% over the past 30 days.

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

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

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
25,679,806
Official API · Oct 17, 2026
7-day growth
-51.4%
-27.2M weekly downloads
30-day growth
-45.5%
-21.4M weekly downloads
90-day growth
-48.0%
-23.8M weekly downloads
Rank
#21
Among tracked npm listings

About webpack-virtual-modules

Webpack Virtual Modules

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href]

Webpack Virtual Modules is a plugin that allows for dynamical generation of in-memory virtual modules for JavaScript builds created with webpack. When virtual module is created all the parent virtual dirs that lead to the module filename are created too. This plugin supports watch mode meaning any write to a virtual module is seen by webpack as if a real file stored on disk has changed.

Installation

Use NPM or Yarn to install Webpack Virtual Modules as a development dependency:

Usage

You can use Webpack Virtual Modules with webpack 5, 4 and 3. The examples below show the usage with webpack 5 or 4. If you want to use our plugin with webpack 3, check out a dedicated doc:

• [Webpack Virtual Modules with Webpack 3]

Generating static virtual modules

Require the plugin in the webpack configuration file, then create and add virtual modules in the plugins array in the webpack configuration object:

You can now import your virtual modules anywhere in the application and use them:

Generating dynamic virtual modules

You can generate virtual modules _dynamically_ with Webpack Virtual Modules.

Here's an example of dynamic generation of a module. All you need to do is create new virtual modules using the plugin and add them to the plugins array. After that, you need to add a webpack hook. For using hooks, consult [webpack compiler hook documentation].

In other module or a Webpack plugin, you can write to the module module-foo whatever you need. After this write, webpack will "see" that module-foo.js has changed and will restart compilation.

More Examples

• [Swagger and JSDoc Example with Webpack 5] • [Swagger and JSDoc Example with Webpack 4] • [Swagger and JSDoc Example with Webpack 3]

API Reference

• [API Reference]

Inspiration

This project is inspired by [virtual-module-webpack-plugin].

License

Copyright © 2017 [SysGears INC]. This source code is licensed under the [MIT] license.

Description from the npm listing.

  • webpack
  • webpack-plugin
  • virtual
  • modules

Where webpack-virtual-modules 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 2, #1 (overall #21)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 1, #1 (overall #1)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

webpack-virtual-modules weekly downloads on npm, last 90 days: 25,679,806 weekly downloads as of Oct 17, 2026, -48.0% over 90 days.webpack-virtual-modulesWeekly downloads on npm · Last 90 days25,679,806downloads / week-48.0% over 90 days20M30M40M50M60M70MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
webpack-virtual-modules weekly downloads on npm, last 90 days: 25,679,806 weekly downloads as of Oct 17, 2026, -48.0% over 90 days.
PNG SVG

7/30/90-day growth

webpack-virtual-modules weekly downloads growth on npm: -51.4% over 7 days, -45.5% over 30 days, -48.0% over 90 days.webpack-virtual-modulesWeekly downloads growth on npm25,679,806downloads / week now7-day growth-27,194,848 weekly downl…-51.4%30-day growth-21,430,871 weekly downl…-45.5%90-day growth-23,750,841 weekly downl…-48.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
webpack-virtual-modules weekly downloads growth on npm: -51.4% over 7 days, -45.5% over 30 days, -48.0% over 90 days.
PNG SVG

Ranking history

webpack-virtual-modules npm ranking history: currently #21 (by weekly downloads).webpack-virtual-modulesnpm ranking · by weekly downloads · Last 90 days#21current rank#6#8#10#12#14#16#18#20#22#24Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
webpack-virtual-modules npm ranking history: currently #21 (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 (543)
Recent weekly downloads observations for webpack-virtual-modules
Date (UTC)Weekly downloadsChange vs. previous
25,679,806-5.4M
31,051,342-301.1K
31,352,393-10.9M
42,247,565-9.7M
51,966,5880
51,966,588-806.6K
52,773,197-101.5K
52,874,654-127.3K
53,001,978+288.7K
52,713,287-883.1K
53,596,391-1.7M
55,287,265-11.5M
66,794,504+46.2K
66,748,258—

Similar npm Webpack 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/webpack-virtual-modules. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.