webpack
npmv5.110.3TypeScriptPacks 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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
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.
Runtime (19)
Dev (95)
Used by
Popular packages that depend on webpack.
Generates and consumes source maps
An AST-based pattern checker for JavaScript.
A JavaScript text diff implementation.
Reactive Extensions for modern JavaScript
ECMAScript parsing infrastructure for multipurpose analysis
Universal WHATWG Fetch API for Node, Browsers and React Native
Low-level network interception library for Node.js.
webpack Validation Utils
Leaner CSS
Seamless REST/GraphQL API mocking library for browser and Node.js.
istanbul reports
A Long class for representing a 64-bit two's-complement integer value.
Fixes stack traces for files with source maps
React Element Selector Query (resq) - Query React components and children by selector (component name)
Minimizer plugin for webpack
Fixes stack traces for files with source maps
Lightweight browser detector
Use react-devtools outside of the browser
A simple common HTTP client specifically for Google APIs and services.
JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.
An implementation of WHATWG EventTarget interface.
Validate XML, Parse XML, Build XML without C/C++ based libraries
Build XML from JSON without C/C++ based libraries
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.
Relationship graph
Dependencies (left) and dependents (right) of webpack.
Frequently installed together
TypeScript definitions for node
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
the most correct and second fastest glob implementation in JavaScript
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Runtime typescript and ESM support for Node.js
The semantic version parser used by npm.
A drop-in replacement for fs, making various improvements.
Fast, unopinionated, minimalist web framework
Fast deep equal
Escape RegExp special characters
Generates and consumes source maps
Release history
48 releases in the last two years, typically about 4 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.110.3latest | 8 days ago | 9.4 MB | MIT |
| 5.110.2 | 10 days ago | 9.3 MB | MIT |
| 5.110.1 | 13 days ago | 9.3 MB | MIT |
| 5.110.0 | 13 days ago | 9.3 MB | MIT |
| 5.109.2 | 1 month ago | 7.7 MB | MIT |
| 5.109.1 | 1 month ago | 7.7 MB | MIT |
| 5.109.0 | 1 month ago | 7.7 MB | MIT |
| 5.108.4 | 2 months ago | 7.0 MB | MIT |
| 5.108.3 | 2 months ago | 6.9 MB | MIT |
| 5.108.2 | 2 months ago | 6.9 MB | MIT |
| 5.108.1 | 2 months ago | 6.9 MB | MIT |
| 5.108.0 | 2 months ago | 6.9 MB | MIT |
| 5.107.2 | 3 months ago | 6.3 MB | MIT |
| 5.107.1 | 3 months ago | 6.3 MB | MIT |
| 5.107.0 | 3 months ago | 6.2 MB | MIT |
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.
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.