Implementing Hot Module Replacement (HMR) for esbuild: Module Loader, Resolver, and Bundling Strategies
This article describes how to add Hot Module Replacement to esbuild by disabling scope hosting, converting modules to CommonJS, building a custom ModuleLoader and resolver, handling module URLs, and comparing two bundling approaches while also covering React Refresh integration.