diff options
| author | 2021-06-12 19:10:08 -0700 | |
|---|---|---|
| committer | 2021-06-12 19:10:08 -0700 | |
| commit | c51c65325faf6692d3eebf92927f56cf35f6b613 (patch) | |
| tree | 892254ba9a7f0241944283d6766ab54ca0c35e8a /src/options.zig | |
| parent | f43234bc300b7e9d9d572dc1b7d8e156ad01576a (diff) | |
| download | bun-c51c65325faf6692d3eebf92927f56cf35f6b613.tar.gz bun-c51c65325faf6692d3eebf92927f56cf35f6b613.tar.zst bun-c51c65325faf6692d3eebf92927f56cf35f6b613.zip | |
I think thats the JS part of HMR
Former-commit-id: 43380a4d68d57f3d78f5b1e00962a59461140967
Diffstat (limited to '')
| -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) { |
