Skip to content
PluginStats

context-map-webpack-plugin weekly downloads statistics

By bastidest · npm · Webpack plugins

Webpack plugin to map dynamic (thirdparty) dependencies to a static context map.

View on npm Fresh · Oct 17, 2026

context-map-webpack-plugin has 45 recorded weekly downloads on npm, a decrease of 54.5% over the past 30 days.

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

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

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

Weekly downloads
45
Official API · Oct 17, 2026
7-day growth
-50.5%
-46 weekly downloads
30-day growth
-54.5%
-54 weekly downloads
90-day growth
-59.1%
-65 weekly downloads
Rank
#1742
Among tracked npm listings

About context-map-webpack-plugin

context-map-webpack-plugin

Webpack plugin to map dynamic (thirdparty) dependencies to a static context map.

Install

Why do I need it / What does it do?

The Problem

Some (thirdparty) code requires other files with expressions that cannot be resolved by webpack at compile-time. Webpack tries to generate a regular expression that determines which files to include in the webpack bundle. In more complex expressions, webpack is unable to determine which files to include, thus an empty context map will be created.

A dynamic import that cannot be resolved might look like this:

Your webpack build will probably have this Critical dependency warning:

This will result in a bundle output that looks like this:

This empty context will lead to runtime errors:

The Solution

Create a static context map in compile-time in order to include all required dependencies. You are required to investigate all possible runtime values of the required argument where the error originates from. These values have to be passed as the staticImports argument in the plugin constructor.

Alternatives

If you use webpack for the backend, you can exclude the required files from the webpack bundle and depend on node_mdules by using webpack-node-externals.

Usage

In your webpack configuration:

Parameters

contextPath

• Type: String • Default: undefined

Specify the directory in which to create/overwrite the context map.

staticImports

• Type: Array[String] • Default: undefined

Static imports that will be written to the context map (and bundled with webpack at compile-time).

Example (uglify-js)

License

MIT

Description from the npm listing.

  • webpack
  • plugin
  • webpack-plugin
  • context
  • import
  • require

Where context-map-webpack-plugin 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 88, #3 (overall #1743)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 7, #9 (overall #129)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

context-map-webpack-plugin weekly downloads on npm, last 90 days: 45 weekly downloads as of Oct 17, 2026, -59.1% over 90 days.context-map-webpack-pluginWeekly downloads on npm · Last 90 days45downloads / week-59.1% over 90 days050100150200250300350Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
context-map-webpack-plugin weekly downloads on npm, last 90 days: 45 weekly downloads as of Oct 17, 2026, -59.1% over 90 days.
PNG SVG

7/30/90-day growth

context-map-webpack-plugin weekly downloads growth on npm: -50.5% over 7 days, -54.5% over 30 days, -59.1% over 90 days.context-map-webpack-pluginWeekly downloads growth on npm45downloads / week now7-day growth-46 weekly downloads-50.5%30-day growth-54 weekly downloads-54.5%90-day growth-65 weekly downloads-59.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
context-map-webpack-plugin weekly downloads growth on npm: -50.5% over 7 days, -54.5% over 30 days, -59.1% over 90 days.
PNG SVG

Ranking history

context-map-webpack-plugin npm ranking history: currently #1742 (by weekly downloads).context-map-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1742current rank#1740#1741#1742#1743#1744Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
context-map-webpack-plugin npm ranking history: currently #1742 (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 context-map-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
45-7
52+2
50-27
77-12
890
89+4
85-6
91+1
90-8
98+4
94-14
108-30
138-119
257—

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/context-map-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.