esbuild VS terser

Compare esbuild vs terser and see what are their differences.

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
esbuild terser
352 32
38,704 8,868
0.6% 0.7%
9.1 8.7
6 days ago about 1 month ago
Go JavaScript
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

esbuild

Posts with mentions or reviews of esbuild. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-11.
  • A 10x Faster TypeScript
    38 projects | news.ycombinator.com | 11 Mar 2025
  • Extensible WASM Applications with Go
    9 projects | news.ycombinator.com | 13 Feb 2025
    ESBuild is a bundler. The subtitle on the website is literally “An extremely fast bundler for the web”. To bundle, pass —-bundle flag.

    https://esbuild.github.io/

  • How I Built a SpeedtestTracker with Raspberry PI and AWS Lambda
    5 projects | dev.to | 7 Feb 2025
    esbuild for bunding both the client and server separately
  • Modern JavaScript for Django Developers
    6 projects | news.ycombinator.com | 15 Jan 2025
    > like individual loaders/modules are/were slow, rather than webpack itself

    tbh this is just nitpicking, I'm not a react developer to do CRA debugging for them. They're paid by Facebook a couple orders of magnitude more than what we're making here, and if they're fine with the intact CRA configuration being that slow, while a third-party alternative rips through the massive pile of shit I'm working on while not bringing any obvious downsides, I'll just to the alternative.

    It's a well known problem: esbuild, which is the base of vite's HMR, boasts of speeds dozens to hundreds of times faster than webpack:

    https://github.com/evanw/esbuild?tab=readme-ov-file#why

  • Custom builder for Angular: My way
    13 projects | dev.to | 15 Jan 2025
    Micro-frontend has always aroused my curiosity: I wanted to understand how they work, how to build them, what their pros and cons are. In 2018, inspired by this topic, I tried to build something similar to single-spa in one of the pet projects. At that time, there was no Webpack Module Federation (WMF), and Webpack itself seemed inconvenient. The choice fell on ESBuild and importmap. Browser support for importmap at the time was mostly on paper or with special flags in browsers. For this reason, I used a polyfill. But, surprisingly, everything worked and even in several projects.
  • A Simple Approach to SSR with React 19 and esbuild
    5 projects | dev.to | 23 Dec 2024
    Why esbuild? compared to other tools esbuild keeps things minimal, it is very fast(the fastest bundler as of today) and supports typescript and esm by default.
  • Optimizing React Development with Vite🤩.
    3 projects | dev.to | 19 Dec 2024
    Instant Hot Module Replacement (HMR): During development, Vite only processes the changed files and updates them in the browser instantly, making it incredibly fast and responsive. Optimized Build Process: Vite uses esbuild under the hood for fast JavaScript transpilation, which is significantly faster than Babel. Production Build with Rollup: For production builds, Vite uses Rollup, a highly efficient bundler that produces optimized code.
  • Streamlining frontend CI/CD pipelines with enhanced observability
    2 projects | dev.to | 17 Dec 2024
    We have transitioned to using Esbuild for our project's build process and, experiencing a substantial increase in speed compared to our previous setup with Webpack. The primary bottleneck we faced with Webpack was its long build times. Now, with Esbuild integrated into our development environment, our build times have been dramatically reduced to about five seconds, significantly enhancing the efficiency of our workflow.
  • What is Evan You doing by creating VoidZero, and what are the issues with JS toolchains?
    15 projects | dev.to | 17 Dec 2024
    However, new tools such as SWC and esbulid now also support JS code compression, and their execution efficiency is higher. After all, Rust or Go inherently have much higher execution efficiency than JS.
  • Node.js and esbuild: beware of mixing cjs and esm
    2 projects | dev.to | 13 Dec 2024
    When executing esbuild bundled code with --platform=node you may have come across one of the following runtime errors:

terser

Posts with mentions or reviews of terser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-05.

What are some alternatives?

When comparing esbuild and terser you can also consider the following projects:

swc - Rust-based platform for the Web

UglifyJS2 - JavaScript parser / mangler / compressor / beautifier toolkit

vite - Next generation frontend tooling. It's fast!

closure-compiler - A JavaScript checker and optimizer.

ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that Go is
the 4th most popular programming language
based on number of references?