diff options
Diffstat (limited to 'src/options.zig')
-rw-r--r-- | src/options.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options.zig b/src/options.zig index 56c72ff1a..4b45acdf2 100644 --- a/src/options.zig +++ b/src/options.zig @@ -540,7 +540,9 @@ pub const BundleOptions = struct { loaders: std.StringHashMap(Loader), resolve_dir: string = "/", jsx: JSX.Pragma = JSX.Pragma{}, + react_fast_refresh: bool = false, + hot_module_reloading: bool = false, inject: ?[]string = null, public_url: string = "", public_dir: string = "public", @@ -685,6 +687,7 @@ pub const BundleOptions = struct { if (isWindows and opts.public_dir_handle != null) { opts.public_dir_handle.?.close(); } + opts.hot_module_reloading = true; } if (opts.write and opts.output_dir.len > 0) { |