Update options.zig

This commit is contained in:
Jarred Sumner
2021-09-16 20:35:08 -07:00
parent 9912a4ce98
commit 1328285bbc

View File

@@ -1181,7 +1181,7 @@ pub const BundleOptions = struct {
if (isWindows and opts.routes.static_dir_handle != null) {
opts.routes.static_dir_handle.?.close();
}
opts.hot_module_reloading = opts.platform.isWebLike();
opts.hot_module_reloading = opts.platform.isWebLike() and !(transform.disable_hmr orelse false);
opts.serve = true;
}