Re:Software devs, how have you sped up your workflow?
by nozzlegear on Saturday December 11, 2021 @09:20PM
(#29526512)
The only thing that tripped me up was the difference between esbuild's `externals` and webpack's `externals`. In webpack you can use the externals config to skip bundling a module and instead get it from another source such as a Node module or, in my case, from a global variable in the browser. In esbuild, an external module is only for the first situation (getting a module from Node), so I was confused about how to get the desired behavior in esbuild. Luckily I found a plugin that does exactly what I want: [0].
Other than that, I'm pretty darn satisfied with what esbuild can do out of the box. I don't use any other plugins except global externals. I don't need a typescript -> javascript plugin like webpack; I don't need a css plugin like webpack; I don't need esnext transpilers or whatever. It's all just built in to esbuild.
Honestly I don't find myself missing anything from webpack. So far esbuild is just better in every way (for myself at least).
Other than that, I'm pretty darn satisfied with what esbuild can do out of the box. I don't use any other plugins except global externals. I don't need a typescript -> javascript plugin like webpack; I don't need a css plugin like webpack; I don't need esnext transpilers or whatever. It's all just built in to esbuild.
Honestly I don't find myself missing anything from webpack. So far esbuild is just better in every way (for myself at least).
[0]: https://github.com/fal-works/esbuild-plugin-global-externals