diff options
author | 2021-09-17 03:14:05 -0700 | |
---|---|---|
committer | 2021-09-17 03:14:05 -0700 | |
commit | 872428de89c63e0034573c1419fa616f8d0648b1 (patch) | |
tree | 328174348b7c623c0abe7304a69c7d5184437cf9 /src/options.zig | |
parent | 93441babd8c3e9b428c53404a3d95b787d76e15a (diff) | |
download | bun-872428de89c63e0034573c1419fa616f8d0648b1.tar.gz bun-872428de89c63e0034573c1419fa616f8d0648b1.tar.zst bun-872428de89c63e0034573c1419fa616f8d0648b1.zip |
Fix bugs with ESM -> CJS when not bundled
Diffstat (limited to '')
-rw-r--r-- | src/options.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/options.zig b/src/options.zig index ab248da1d..02d44fa08 100644 --- a/src/options.zig +++ b/src/options.zig @@ -1181,7 +1181,11 @@ 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() and !(transform.disable_hmr orelse false); + opts.hot_module_reloading = opts.platform.isWebLike(); + + if (transform.disable_hmr orelse false) + opts.hot_module_reloading = false; + opts.serve = true; } |