news.volyx.in

Esbuild – An extremely fast JavaScript bundler (esbuild.github.io)

679 points by taitems · 1804 days ago · 281 comments on HN

Article summary

Esbuild is a fast JavaScript bundler that aims to bring about a new era of build tool performance. It supports JavaScript, CSS, TypeScript, and JSX, and has features like tree shaking, minification, and source maps. Esbuild is designed to be easy to use and has a straightforward API. It is being adopted by frameworks like Phoenix and Rails.

Main themes

  • esbuild performance
  • bundling limitations
  • alternative bundlers
  • development workflow
  • SCSS performance
  • framework integration

What commenters say

  • Some users find esbuild to be fast and easy to use, but others have experienced difficulties in setting it up and configuring it for their specific use cases. Esbuild's lack of support for dynamic imports is a limitation for some users, but others have found workarounds or alternative solutions. The need for bundling is debated, with some arguing that it is necessary for complex projects, while others believe that it can be avoided with proper coding practices. Some users prefer alternative bundlers like Vite or Parcel, while others appreciate esbuild's speed and simplicity. The importance of bundling is also questioned, with some arguing that it is not the main bottleneck in the development workflow. Esbuild's performance with SCSS is a topic of interest, with some users sharing their configurations and experiences. The speed of other development tools, such as unit test frameworks and linters, is also a concern for some users.
  • The use of esbuild with other frameworks and libraries, such as Inertiajs and React, is discussed, with some users sharing their experiences and workarounds.