diff options
author | 2022-04-08 16:44:08 -0700 | |
---|---|---|
committer | 2022-04-08 16:44:08 -0700 | |
commit | 8561dcdee486e696152e50c6c96f14941c897ce0 (patch) | |
tree | 606fd6dbe13f315cf4f1eb09b713664bb694ae35 | |
parent | ded2bcfda5bfc7913e7d88eefc0a6c74a6cd30ec (diff) | |
download | bun-8561dcdee486e696152e50c6c96f14941c897ce0.tar.gz bun-8561dcdee486e696152e50c6c96f14941c897ce0.tar.zst bun-8561dcdee486e696152e50c6c96f14941c897ce0.zip |
Immediately inject fast refresh once
-rw-r--r-- | src/bundler.zig | 3 |
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}()); \\ }})(); \\}} |