mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
[bun dev] Add flag to force hmr
This commit is contained in:
@@ -1881,9 +1881,9 @@ pub const RequestContext = struct {
|
||||
var reloader = Api.Reloader.disable;
|
||||
if (ctx.bundler.options.hot_module_reloading) {
|
||||
reloader = Api.Reloader.live;
|
||||
// if (ctx.bundler.options.jsx.supports_fast_refresh) {
|
||||
// reloader = Api.Reloader.fast_refresh;
|
||||
// }
|
||||
if (ctx.bundler.options.jsx.supports_fast_refresh and ctx.bundler.env.get("BUN_FORCE_HMR") != null) {
|
||||
reloader = Api.Reloader.fast_refresh;
|
||||
}
|
||||
}
|
||||
|
||||
const welcome_message = Api.WebsocketMessageWelcome{
|
||||
|
||||
Reference in New Issue
Block a user