top | item 27223552

(no title)

astraloverflow | 4 years ago

True, but how many projects will use either one directly and not as a part of a larger toolkit like vitejs and now parcel?

discuss

order

qbasic_forever|4 years ago

esbuild is perfect for adding to a go server app that needs to do some basic bundling. Just add it as a go module dependency, add a few go generate comments to use it to bundle your JS code, and you're done--you don't need nodejs or anything else installed.

Aeolun|4 years ago

I use just esbuild for prod compilation. For dev we still use webpack (with webpack-esbuild since it’s much faster than babel).

vbsteven|4 years ago

Is it a good idea to use a completely different compiler toolchain for dev vs prod? I don't know enough about their internals but that seems like a recipe for weird behavior in production.