# JavaScript bundle optimizer

> AI-ranked search results for `bundle optimization tools` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 112 total matches; showing the top 9.

Explore on the web: https://awesome-repositories.com/q/bundle-optimization-tools

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/bundle-optimization-tools).**

## Results

- [danvk/source-map-explorer](https://awesome-repositories.com/repository/danvk-source-map-explorer.md) (3,930 ⭐) — source-map-explorer is a source map bundle analyzer that visualizes the space usage of bundled JavaScript files. It functions as a bundle size auditor and visualizer, using source maps to identify which original modules and files occupy the most space within a production bundle.

The tool generates an interactive treemap to represent bundle composition and calculates compressed gzip sizes to estimate actual network transfer costs. It further serves as a code coverage mapper by overlaying execution data onto source maps to identify unused code segments that can be deferred or split.

The utilit
- [webpro-nl/knip](https://awesome-repositories.com/repository/webpro-nl-knip.md) (11,560 ⭐) — Knip is a static analysis project cleaner and dead code analyzer for JavaScript and TypeScript projects. It identifies and removes unused files, dependencies, and exports to maintain a lean codebase and reduce bundle size.

The tool functions as a monorepo dependency auditor, tracking exports and dependencies across multiple workspaces to find dead code in large multi-package projects. It specifically targets the removal of unused packages from project manifests and the deletion of unreferenced exports.

Its capabilities cover dead code elimination, JavaScript dependency management, and TypeSc
- [sverweij/dependency-cruiser](https://awesome-repositories.com/repository/sverweij-dependency-cruiser.md) (6,804 ⭐) — Dependency-cruiser is a JavaScript and TypeScript dependency analyzer and architectural linter. It serves as a static analysis tool for mapping, visualizing, and validating module relationships within a codebase without requiring code execution.

The project is distinguished by its ability to enforce architectural boundaries through a rule-based system. It detects circular dependencies, identifies orphan modules and dead code, and validates dependency constraints using allowed and forbidden relationship rules. It also provides quantitative stability analysis by calculating afferent and efferen
- [webpack/webpack-bundle-analyzer](https://awesome-repositories.com/repository/webpack-webpack-bundle-analyzer.md) (12,667 ⭐) — webpack-bundle-analyzer is a bundle size analysis tool and Webpack build plugin that visualizes the composition of web application assets. It generates an interactive treemap to identify large dependencies and analyze the distribution of modules within the final payload.

The tool functions as a bundle visualizer and a static report generator, exporting analysis data as standalone HTML and JSON files. It supports live bundle tracking via WebSockets during development and allows for the analysis of existing static stats files through a command line interface.

The project provides capabilities
- [google/closure-compiler](https://awesome-repositories.com/repository/google-closure-compiler.md) (7,663 ⭐) — This project is a JavaScript optimizer, minifier, module bundler, transpiler, and static analysis tool. It provides a compilation pipeline designed to shrink file sizes and improve runtime performance.

The system utilizes a multi-pass compilation process to perform dead code elimination, global name mangling, and static type inference. It identifies unreachable functions and unused variables to reduce the final output size and detects potential runtime errors without executing the code.

The tool manages assets through dependency resolution, code chunking, and bundle management. It ensures co
- [mishoo/uglifyjs](https://awesome-repositories.com/repository/mishoo-uglifyjs.md) (13,392 ⭐) — UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose is to reduce the file size of JavaScript source code by removing whitespace and shortening variable names to optimize frontend build assets.

The project differentiates itself through its ability to programmatically analyze and transform code using abstract syntax trees. It performs constant folding analysis and conditional compilation to eliminate unreachable or redundant code, and it employs a multi-pass compression pipeline to maximize total file size reduction.

The tool pr
- [oxc-project/oxc](https://awesome-repositories.com/repository/oxc-project-oxc.md) (21,675 ⭐) — Oxc is a high-performance toolchain designed for the analysis, linting, formatting, and transformation of JavaScript and TypeScript codebases. It functions as a comprehensive static analysis engine and compiler-based utility, providing the infrastructure necessary to parse source code into high-performance abstract syntax trees and map complex module dependency graphs across entire projects.

The project distinguishes itself through its use of multi-core parallel processing to maximize throughput during intensive tasks like linting and minification. It offers deep, type-aware static analysis t
- [robertknight/webpack-bundle-size-analyzer](https://awesome-repositories.com/repository/robertknight-webpack-bundle-size-analyzer.md) (1,390 ⭐) — Webpack bundle size analyzer is a command-line tool and diagnostic utility that inspects compiled Webpack build output to report the exact file size and percentage contribution of each individual module and package. It operates via JSON-driven static analysis against build output files, parsing and traversing abstract syntax trees and dependency graphs to calculate precise byte weights without altering original execution code.

The tool sorts and aggregates parsed module metrics by file size and percentage share to highlight the largest bundle contributors. It provides terminal stream output a
- [ai/size-limit](https://awesome-repositories.com/repository/ai-size-limit.md) (6,911 ⭐) — size-limit is a set of specialized tools for measuring JavaScript bundle sizes and enforcing performance budgets within continuous integration pipelines. It functions as a bundle size monitor and budget enforcer that can reject pull requests when JavaScript bundles exceed predefined size thresholds.

The project distinguishes itself by providing a browser-based execution profiler that calculates the time required to compile and execute JavaScript on simulated low-end hardware. It also includes a tree-shaking validator that analyzes partial import bundle sizes to verify that unused code is corr
