</>PackageGraphPackageGraph

webpack

npmv5.110.3TypeScript

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

Adopt with care

webpack is usable, with caveats. Pulls in 68 transitive packages, about 18 MB installed (at least — some of the tree is still being crawled).

  • AAdoption: grade A, Excellent.

    49.8M downloads per week and 29 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 8 days ago. 50 releases in the last 2 years.

  • DWeight: grade D, Poor — a real concern.

    Pulls in 68 transitive packages, about 18 MB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 8 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding webpack to a project.

19
Direct dependencies

Runtime packages this one declares itself.

68
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

18 MB
Install size

Unpacked size of this package plus its entire runtime tree.

6
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

Apache-2.0BSD-3-ClauseCC-BY-4.0ISCMIT

Every license you inherit by installing webpack, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=10.13.0
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Dependencies

Declared by webpack v5.110.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (95)

@babel/core ^8.0.1@babel/preset-react ^8.0.1@changesets/cli ^3.0.1@changesets/get-github-info ^0.8.0@codspeed/core ^5.5.0@mdn/browser-compat-data ^8.0.9@types/convert-source-map ^2.0.3@types/graceful-fs ^4.1.9@types/jest ^30.0.0@types/mime-db ^1.43.6@types/neo-async ^2.6.7@types/node ^26.2.0@types/xxhashjs ^0.2.4@webdiscus/pug-loader ^2.11.1assemblyscript ^0.28.18babel-loader ^10.0.0bundle-loader ^0.5.6coffee-loader ^5.0.0coffeescript ^2.5.1color-name ^2.1.1core-js ^3.47.0cspell ^10.0.1css-loader ^7.1.2date-fns ^4.4.0es5-ext ^0.10.53es6-promise-polyfill ^1.2.0eslint ^9.39.2eslint-config-webpack ^4.9.3eslint-scope ^9.1.2eta ^4.6.0file-loader ^6.0.0fork-ts-checker-webpack-plugin ^9.0.2globals ^17.6.0hash-wasm ^4.9.0html-loader ^5.1.0husky ^9.0.11istanbul ^0.4.5jest ^30.3.0jest-circus ^30.3.0jest-cli ^30.3.0jest-diff ^30.3.0jest-environment-node ^30.3.0jest-junit ^17.0.0jest-snapshot ^30.3.0jest-worker ^30.2.0json-loader ^0.5.7json5 ^2.1.3less ^4.6.4less-loader ^13.0.0lint-staged ^17.0.7lodash ^4.17.19lodash-es ^4.17.15mdn-data ^2.29.0memfs ^4.57.6meriyah ^7.0.0mini-css-extract-plugin ^2.9.0mini-svg-data-uri ^1.2.3node-gyp ^13.0.0nyc ^18.0.0open-cli ^9.0.0oxc-parser ^0.146.0pkg-pr-new ^0.0.88prettier ^3.8.2prettier-2 npm:prettier@^2pretty-format ^30.0.5pug ^3.0.3puppeteer-core ^25.3.0raw-loader ^4.0.1react ^19.2.7react-dom ^19.2.7rehype-sanitize ^6.0.0rehype-stringify ^10.0.1remark-frontmatter ^5.0.0remark-gfm ^4.0.1remark-parse ^11.0.0remark-rehype ^11.1.2rimraf ^3.0.2script-loader ^0.7.2simple-git ^3.28.0style-loader ^4.0.0terser ^5.46.2three ^0.185.1tinybench ^6.0.1toml ^5.0.0tooling github:webpack/tooling#v1.28.1ts-loader ^9.6.0typescript ^6.0.3unified ^11.0.5url-loader ^4.1.0wast-loader ^1.12.1webassembly-feature 1.3.0webpack-cli ^7.2.1webpack-dev-server ^6.0.0xxhashjs ^0.2.2yamljs ^0.3.0

Used by

Popular packages that depend on webpack.

source-map-jsnpm

Generates and consumes source maps

157.7M/wk9 dependentsBSD-3-ClauseTS
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
diffnpm

A JavaScript text diff implementation.

124.1M/wk4 dependentsBSD-3-ClauseTS
rxjsnpm

Reactive Extensions for modern JavaScript

90.9M/wk6 dependentsApache-2.0TS
esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

77.6M/wk5 dependentsBSD-2-Clause
cross-fetchnpm

Universal WHATWG Fetch API for Node, Browsers and React Native

32.9M/wk2 dependentsMITTS
@mswjs/interceptorsnpm

Low-level network interception library for Node.js.

20.3M/wk1 dependentsMITTS
schema-utilsnpm

webpack Validation Utils

0/wk2 dependentsMITTS
lessnpm

Leaner CSS

0/wk2 dependentsApache-2.0
mswnpm

Seamless REST/GraphQL API mocking library for browser and Node.js.

0/wk5 dependentsMITTS
istanbul-reportsnpm

istanbul reports

0/wk6 dependentsBSD-3-Clause
@xtuc/longnpm

A Long class for representing a 64-bit two's-complement integer value.

0/wk3 dependentsApache-2.0TS
source-map-supportnpm

Fixes stack traces for files with source maps

0/wk13 dependentsMIT
resqnpm

React Element Selector Query (resq) - Query React components and children by selector (component name)

0/wk1 dependentsMIT
minimizer-webpack-pluginnpm

Minimizer plugin for webpack

0/wk1 dependentsMITTS
@cspotcode/source-map-supportnpm

Fixes stack traces for files with source maps

0/wk1 dependentsMITTS
bowsernpm

Lightweight browser detector

0/wk1 dependentsMITTS
react-devtools-corenpm

Use react-devtools outside of the browser

0/wk1 dependentsMIT
gaxiosnpm

A simple common HTTP client specifically for Google APIs and services.

0/wk1 dependentsApache-2.0TS
node-forgenpm

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

0/wk5 dependents(BSD-3-Clause OR GPL-2.0)
event-target-shimnpm

An implementation of WHATWG EventTarget interface.

0/wk2 dependentsMIT
fast-xml-parsernpm

Validate XML, Parse XML, Build XML without C/C++ based libraries

0/wk4 dependentsMITTS
fast-xml-buildernpm

Build XML from JSON without C/C++ based libraries

0/wk1 dependentsMITTS
react-server-dom-webpacknpm

React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.

0/wk2 dependentsMIT

Relationship graph

Dependencies (left) and dependents (right) of webpack.

Frequently installed together

Release history

48 releases in the last two years, typically about 4 days apart.

Recent versions of webpack
VersionPublishedSizeLicense
5.110.3latest8 days ago9.4 MBMIT
5.110.210 days ago9.3 MBMIT
5.110.113 days ago9.3 MBMIT
5.110.013 days ago9.3 MBMIT
5.109.21 month ago7.7 MBMIT
5.109.11 month ago7.7 MBMIT
5.109.01 month ago7.7 MBMIT
5.108.42 months ago7.0 MBMIT
5.108.32 months ago6.9 MBMIT
5.108.22 months ago6.9 MBMIT
5.108.12 months ago6.9 MBMIT
5.108.02 months ago6.9 MBMIT
5.107.23 months ago6.3 MBMIT
5.107.13 months ago6.3 MBMIT
5.107.03 months ago6.2 MBMIT

Overview

webpack is an npm package that packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff. It is extremely widely used, with about 49.8M downloads per week and 29 known dependents in the graph. The latest version is 5.110.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (49.8M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (114 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Funding

Frequently asked questions

Should I use webpack?

webpack is usable, with caveats. Pulls in 68 transitive packages, about 18 MB installed (at least — some of the tree is still being crawled).

How do I install webpack?

Run `npm install webpack` to add webpack to your npm project.

How many dependencies does webpack have?

webpack declares 114 direct dependencies and pulls in 68 packages in total once its runtime tree is resolved totalling about 18 MB on disk.

What license is webpack released under?

webpack is distributed under the MIT license. Its dependency tree also includes: Apache-2.0, BSD-3-Clause, CC-BY-4.0, ISC, MIT.

How popular is webpack?

webpack has approximately 49,793,842 downloads per week and 29 known dependent packages.

Is webpack still maintained?

The most recent release of webpack (v5.110.3) was published 8 days ago.

Does webpack run install scripts?

No. webpack does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.