While browsing GitHub issues, I found an interesting issue related to the TSdown project. At first, I thought it would be easy to fix by just updating an old dependency. However, it ended up being closed because there were some challenges that couldn't be resolved.
This project, tsdown, inspired me to research JavaScript and TypeScript bundlers. Here are some key points I noted, which might help others looking for a bundler for their projects:
- Webpack: The most popular bundler, with 28,439 libraries depending on it.
- esbuild: A fast bundler written in Go.
- Rollup: It has tree-shaking, which optimizes code by removing unused libraries.
- Vite: Uses both esbuild and Rollup. It relies on esbuild for development and Rollup for production builds due to esbuild's API limitations.
- Rolldown: A Rust-based version of Rollup, designed to work as the main bundler for Vite and compatible with Rollup APIs.
- tsup: Offers a ready-to-use experience powered by esbuild, but is no longer maintained.
- tsdown: Also provides a ready-to-use experience, but powered by Rolldown.
I also came across this post by Evan You, the main maintainer of Vue.js, where he mentions that Rolldown is the fastest bundler in his experiment.
I want to learn more about this topic and keep an eye on Rolldown and tsdown. The invention of bundlers has greatly changed the JavaScript ecosystem and helped make JavaScript the most popular programming language today.
Top comments (0)