esbuild vs webpack
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, esbuild is a dependency in 304 (6.2%) and webpack in 54 (1.1%): esbuild is 5.6× as common. Among repos created in the last 90 days that use a build tools and bundlers tool, esbuild is in 20.2% and webpack in 0.8%, against 12.9% and 2.4% of older ones. 5 projects list both, often a sign of a migration or of a monorepo with several apps.
Build tools and bundlers npm Updated Nov 17, 2026
Side by side
| esbuild | webpack | |
|---|---|---|
| Agent projects that use it | 304 | 54 |
| Rank in build tools and bundlers | #3 | #18 |
| In new repos with a build tools and bundlers tool (last 90 days) | 20.2% | 0.8% |
| In older repos with one | 12.9% | 2.4% |
| Downloads, last 7 days | 425M | 73.5M |
| GitHub stars | 40.1K | 66K |
| Last push to its repo | Aug 9, 2026 | Nov 16, 2026 |
| License | MIT | MIT |
| Funding | — | Yes |
| Projects that list both | 5 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | esbuild | webpack |
|---|---|---|---|
| Claude Code | 2,617 | 8.4% | 1.2% |
| GitHub Copilot | 2,350 | 5.4% | 1.2% |
| Cursor | 1,990 | 5.7% | 1.4% |
| Gemini CLI | 422 | 7.1% | 2.1% |
| OpenAI Codex | 409 | 9.5% | 0% |
| OpenCode | 304 | 7.6% | 0% |
| OpenClaw | 241 | 13.3% | 0% |
| Devin Desktop | 231 | 6.1% | 2.6% |
| Kiro | 125 | 7.2% | 0% |
| Roo-Code | 90 | 0% | 5.6% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
esbuild
Extremely fast JavaScript and CSS bundler and minifier written in Go.
Most often used with it:
| tsx | 49.3% of its projects |
|---|---|
| Vitest | 57.6% of its projects |
| TypeScript | 89.8% of its projects |
| Vite | 42.4% of its projects |
| jsdom | 29.3% of its projects |
npm install esbuild
webpack
Module bundler that packages JavaScript, assets and dependencies for browser deployment.
Most often used with it:
| webpack CLI | 63.0% of its projects |
|---|---|
| ESLint | 77.8% of its projects |
| ts-loader | 37.0% of its projects |
| Babel (JavaScript) | 35.2% of its projects |
| Sass | 31.5% of its projects |
npm install webpack
More matchups
esbuild vs SWCVite vs webpackTurborepo vs NxBabel (JavaScript) vs SWC
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.