esm.sh VS esbuild

Compare esm.sh vs esbuild and see what are their differences.

esm.sh

A fast, global content delivery network for ES Modules. (by alephjs)

esbuild

An extremely fast JavaScript and CSS bundler and minifier (by evanw)
Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
esm.sh esbuild
9 151
856 29,064
6.0% -
9.7 9.8
3 days ago 6 days ago
Go Go
MIT License MIT License
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.

esm.sh

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

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 2021-12-04.
  • Using Github Actions to Deploy a React App and Express API Using Rsync in 15 seconds
    4 projects | dev.to | 4 Dec 2021
    Now that we have a simple React app we are going to output a minified production build using esbuild.
  • How to fix the ReferenceError: global is not defined error in SvelteKit/Vite
    6 projects | dev.to | 3 Dec 2021
    SvelteKit uses Vite as its build tool which is great because Vite pre-bundles dependencies using esbuild which is really really fast. But by default, Vite doesn't include shims for NodeJS variables so these need to be added by the user.
  • Go is the future of Frontend infrastructure
    5 projects | dev.to | 1 Dec 2021
    esbuild is a bundle written in Golang and always be compared with its equivalence in Rust swc, the latter wins most cases in its benchmark, but let's see how esbuild outperforms swc in a practical comparison:
  • AoC runner for JavaScript and Typescript - ultra-fast, with simple CLI, customizable template, simple testing utility, live reload, and adventofcode.com integration
    2 projects | reddit.com/r/adventofcode | 30 Nov 2021
    Runs your solutions in watch mode (with extremely fast compilation for TS using esbuild).
  • WebGL Water
    1 project | news.ycombinator.com | 29 Nov 2021
    So the cool thing about this demo was that I remember when it was first submitted many years ago and thought it a cool demo that demonstrated the viability of Web3D which I expected to take off a lot quicker than it has.

    But I also recently came across madebyevan.com again by accident after researching the backing of different npm projects to assess which ones had good momentum or commercial backing behind them to assess their long-term viability, and noticed a lot of npm projects (~2M weekly) relying on esbuild [1] as a fundamental part of their build system due to its amazing performance.

    All good except that the foundational part of many npm projects feature is mostly being maintained by a single developer [2], a @evanw who was also prolific in responding to esbuild's issue catering for different peoples needs & feature requests. I didn't think this level of investment in a popular OSS project was sustainable and hoped they had good sponsorship behind them, but was surprised that @evanw [3] had no sponsorship option available which I thought strange as most authors of popular npm projects have good sponsorship, but upon further research it's because Evan Wallace is the CTO and cofounder of Figma - a popular company with ~10B valuation.

    Which is great in that esbuild is at no risk of being sporadically abandoned from its lead developer joining a new/demanding startup, on the other hand a foundational project in npm's ecosystem is being developed in the spare time of a Co-founder & CTO of a ~10B Co - who also creates great demos :)

    [1] https://github.com/evanw/esbuild

    [2] https://github.com/evanw/esbuild/graphs/contributors

    [3] https://github.com/evanw

  • The Ultimate Guide to TypeScript Monorepos
    17 projects | dev.to | 26 Nov 2021
    Likewise it is easy to use esbuild. esbuild supports TypeScript by default and will automatically resolve all local references since we have TypeScript project references configured. Only additional configuration we need to provide is to use the plugin [@yarnpkg/esbuild-plugin-pnp](https://github.com/yarnpkg/berry/tree/master/packages/esbuild-plugin-pnp) so that esbuild can resolve external dependencies from the local Yarn cache. Find below an example script ( build.ts) to bundle code for a AWS lambda:
  • ELI5: Why is Vite so much faster than Webpack?
    1 project | reddit.com/r/vuejs | 23 Nov 2021
    Just thanks to https://esbuild.github.io/
  • Understanding why our build got 15x slower with Webpack 5 - Tines Engineering
    2 projects | reddit.com/r/programming | 20 Nov 2021
    Some people are starting to see sense and rewriting all this crap in a more suitable language. e.g. https://github.com/evanw/esbuild
  • CDK Integration Testing
    4 projects | dev.to | 19 Nov 2021
    Next, create the handler lambda. The only complicated part of this is injecting the testEntry property into your source code. You're going to use [esbuild](https://esbuild.github.io/) to take care of that.
  • Announcing vite-react-ts-extended
    4 projects | dev.to | 17 Nov 2021
    However, in 2021, the popularity of a completely new development environment/build tool that does not include Webpack has skyrocketed. Yes, it is Vite. Super-fast DevServer, super-fast HMR, super-fast build with ESBuild that starts without build. Vite solves the problem that Webpack+Babel stacks used to have, that Local environment and Production builds become noticeably slower in proportion to the scale of the project. In NPM Trend, you can see that Vite has overtaken the number of downloads of create-react-app since July.

What are some alternatives?

When comparing esm.sh and esbuild you can also consider the following projects:

swc - swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

Rollup - Next-generation ES module bundler

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

parcel - The zero configuration build tool for the web. 📦🚀

Tailwind CSS - A utility-first CSS framework for rapid UI development.

Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️

PostCSS - Transforming styles with JS plugins

svgr - Transform SVGs into React components 🦁

sucrase - Super-fast alternative to Babel for when you can target modern JS runtimes

import-maps - How to control the behavior of JavaScript imports

tsdx - Zero-config CLI for TypeScript package development