aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bundler.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index d5c01a03a..63ebdcce5 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -1095,7 +1095,6 @@ pub const Bundler = struct {
return null;
}
- // Delay by one tick so that the rest of the file loads first
if (include_refresh_runtime and refresh_runtime_module_id > 0) {
var refresh_runtime_injector_buf: [1024]u8 = undefined;
var fixed_buffer = std.io.fixedBufferStream(&refresh_runtime_injector_buf);
@@ -1103,7 +1102,7 @@ pub const Bundler = struct {
fixed_buffer_writer.print(
\\if ('window' in globalThis) {{
- \\ (async function() {{
+ \\ (function() {{
\\ BUN_RUNTIME.__injectFastRefresh(${x}());
\\ }})();
\\}}