aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bundler.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index 211f368d3..0267fb014 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -1029,8 +1029,10 @@ pub const Bundler = struct {
if (Environment.isDebug) {
try generator.appendBytes(runtime.Runtime.sourceContent(include_fast_refresh_in_bundle));
try generator.appendBytes("\n\n");
+ } else if (include_fast_refresh_in_bundle) {
+ try generator.appendBytes(comptime runtime.Runtime.sourceContent(true) ++ "\n\n");
} else {
- try generator.appendBytes(comptime runtime.Runtime.sourceContent(include_fast_refresh_in_bundle) ++ "\n\n");
+ try generator.appendBytes(comptime runtime.Runtime.sourceContent(false) ++ "\n\n");
}
this.pool.start(this) catch |err| {