News for hackers. Stuff that matters.
Re:Esbuild – An extremely fast JavaScript bundler by baxuz on Thursday October 14, 2021 @06:51AM (#28862635)
How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh?

Also, in case of working on an Electron project: How well does it handle main/render/preload compile targets and handling of native modules and linking?

Electron-forge is, for instance, the recommended toolchain for building Electron apps and the Webpack stuff is a particular pain in the ass.

Re:Esbuild – An extremely fast JavaScript bundler by brainbag on Thursday October 14, 2021 @08:55AM (#28863610)
You can use vite for that, which is an enhanced wrapper for esbuild. I use it on all of my projects except the ones I'm forced to use webpack on for legacy reasons.
Re:Esbuild – An extremely fast JavaScript bundler by Aeolun on Thursday October 14, 2021 @06:56AM (#28862673)
> How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh?

It’s not. It doesn’t do hot reloading, and it’s one of the features the author rejected I think.

Re:Esbuild – An extremely fast JavaScript bundler by hashkb on Thursday October 14, 2021 @10:44AM (#28864960)
You can build very fast reloading yourself, easily. If I'm smart with persisting state on the client, I find I don't really miss "hot" reloading.
Re:Esbuild – An extremely fast JavaScript bundler by magerleagues on Thursday October 14, 2021 @11:17AM (#28865470)
Re:Esbuild – An extremely fast JavaScript bundler by hashkb on Thursday October 14, 2021 @10:40AM (#28864904)
Or easily write your own dev server. Once you use the API instead of the CLI, if you have any experience with Express or Connect it's trivial.