esbuild
An extremely fast bundler for the web (by evanw)
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. (by webpack)
Our great sponsors
esbuild | webpack | |
---|---|---|
304 | 296 | |
35,403 | 63,120 | |
- | 0.2% | |
9.7 | 9.8 | |
9 days ago | 4 days ago | |
Go | JavaScript | |
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.
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 2023-06-05.
-
How to Drag a Shape Along an SVG Ellipse Path: A Step-by-Step Guide
I will use TypeScript with esbuild bundler, which is a fast and highly efficient builder for JavaScript and TypeScript.
-
Building an Extension System on the Web
Bundling extensions — in general, custom extension formats require custom bundling tools. Currently, as it’s still early, I put everything into a single JSON file with Node.js and esbuild bundler, but I’m exploring how to develop a custom Vite plugin for this purpose;
-
Do not drop Sass for CSS
Chris favours using the ESBuild bundler to work out the shortcomings. ESBuild can bundle CSS files into a single CSS file. ESBuild can transform your natively nested CSS to "flat" CSS -- this is important since nesting is not in Firefox currently. Therefore, with the aid of ESBuild, Chris has feature parity for his usage of Sass. The other Sass features like mixins and inheritance do not appeal to Chris.
-
[AskJS] Advantages of Rollup over other bundlers for creating libraries?
Rollup is highly configurable via plugins. It also supports a wide range of transpilation targets. However, it's written in JavaScript (well, TypeScript) so there's a ceiling on how fast it can go. esbuild and swc are orders-of-magnitude faster than Rollup.
-
JavaScript import maps are now supported cross-browser
Note that `deno bundle` is deprecated. You can almost replace it with esbuild but it currently lacks builtin support for import maps:
deno run --allow-all https://deno.land/x/[email protected]/mod.js --bundle app.js --outfile=bundle.js. # errors, see: https://github.com/evanw/esbuild/issues/2230
-
xtsz - a TS / JS file runner with support for HTTP/S imports
Want to import a package / file conveniently from esm.sh or unpkg or directly from a GitHub repo for a one-off script (for example). To do this I created a custom ESBuild plugin to handle HTTP imports - that worked for ,js files. To support running both ESM and CJS, I use tsx.
-
Let’s create a Node CLI for generating files from templates!
esbuild – is an easy-to-configure bundler,
-
Building a modern gRPC-powered microservice using Node.js, Typescript, and Connect
As we iterate on the definition, we are going to want a better developer experience for rebuilding the package on changes. Typically, for a “library” or “utility” style package, I’d reach for either unbuild’s stub concept or use esbuild/tsup/rollup to implement a more traditional watch/rebuild, but in this case, I’m watching a proto file that lives outsides of the source, which breaks assumptions of those tools.
-
Svelte frontend vs HTMX and hyperscript
I use ESBuild (https://esbuild.github.io/) as a library for my almost pure Go toolchain, and it covers my requirements for almost 2 years now. ESBuild is the Go tool used in Vite, an incredible tool that I stopped using when I discovered that ESBuild covered all my needs.
-
Buildless workflow through import maps (featuring Lit, Shoelace and more)
As we can see, we have two external dependencies and one internal tool. In the modern way of packaging our application, we would be of course required to package this project using some bundler like ESBuild or Rollup. But with import maps, we can instead utilize CDN's to deliver our packages and completely eliminate the bundling step.
webpack
Posts with mentions or reviews of webpack.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-04.
-
How to build and publish React TypeScript NPM packages with Vite
The main reason for writing this post is that although Vite is an excellent tool, it is still relatively new and sometimes lacks extensive documentation. When I initially had to set up a Vite npm package, it took me more time than I'd care to admit to get it working properly. Therefore, I've decided to create this post to help individuals who may be facing a similar situation and are looking for an alternative to Webpack.
- Webpack production issue that will break half of the internet
-
Why the negativity towards Webpack?
i was pleased to see webpack continuing to push out releases recently, i am just speculating but maybe there was a passing of the torch because all previous releases before march of this year were done by sokra and now done by thelarkinn (https://github.com/webpack/webpack/releases)
-
The Native Way To Configure Path Aliases in Frontend Projects
Webpack supports the imports field starting from v5.0. Path aliases work without any additional configuration. Here is the Webpack configuration I used to build a test project with TypeScript:
-
How to Effortlessly Improve a Legacy Codebase Using Robots
Run webpack compilation to generate a browser-compatible bundle and emit bundle size metrics
-
Exploring Vite.js: The Lightning-Fast Build Tool for Modern Web Apps
Even, there are several bundling tools available, including popular ones like Webpack and Snowpack.
-
Chat GPT answers seem very helpful... at first glance
The webpack pull request that introduced the cacheWebWorker experiment: https://github.com/webpack/webpack/pull/13262
-
ELI5: What makes different programming languages "better" than others? Or more powerful? Why have different languages developed over time? Are they all based on the same thing?
Issue I found recently working on a security suite build
-
JavaScript Module Bundlers and all that Jazz ✨
Webpack is a static module bundler for modern JavaScript applications. On processing your application - Webpack internally builds a dependency graph from one or more entry points and then combines every module your project needs into one or more bundles, which are static assets from which content is served.
-
Benchmarking the AWS SDK
The other option I want to highlight is packaging the project using something like Webpack or esbuild. JS Bundlers transpile all of your separate files and classes (along with all node_modules) into one single file, a practice originally developed to reduce package size for frontend applications. This helps improve the cold start time in Lambda, as unimported files can be pruned and the entire handler becomes one file.
What are some alternatives?
When comparing esbuild and webpack you can also consider the following projects:
swc - Rust-based platform for the Web
vite - Next generation frontend tooling. It's fast!
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
Rollup - Next-generation ES module bundler
parcel - The zero configuration build tool for the web. 📦🚀
terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+
tsup - The simplest and fastest way to bundle your TypeScript libraries.
ts-node - TypeScript execution and REPL for node.js
Tailwind CSS - A utility-first CSS framework for rapid UI development.
import-maps - How to control the behavior of JavaScript imports