diff options
author | 2023-09-01 00:33:33 -0700 | |
---|---|---|
committer | 2023-09-01 00:33:33 -0700 | |
commit | 1ff8155c2831b95b72fb9749b7e837df48893df6 (patch) | |
tree | 1d012fcdf637a3b7fa8ed051ad5dde0cd913aafd /src/bun.js/javascript.zig | |
parent | 40d749b480a00bbc63beaac16625c529709f1cd6 (diff) | |
download | bun-1ff8155c2831b95b72fb9749b7e837df48893df6.tar.gz bun-1ff8155c2831b95b72fb9749b7e837df48893df6.tar.zst bun-1ff8155c2831b95b72fb9749b7e837df48893df6.zip |
Add Bun.canReload event to inspector
Diffstat (limited to '')
-rw-r--r-- | src/bun.js/javascript.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index 32cf04346..212e6be71 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -2720,6 +2720,7 @@ pub const VirtualMachine = struct { pub const HotReloader = NewHotReloader(VirtualMachine, JSC.EventLoop, false); pub const Watcher = HotReloader.Watcher; +extern fn BunDebugger__willHotReload() void; pub fn NewHotReloader(comptime Ctx: type, comptime EventLoopType: type, comptime reload_immediately: bool) type { return struct { @@ -2777,6 +2778,7 @@ pub fn NewHotReloader(comptime Ctx: type, comptime EventLoopType: type, comptime unreachable; } + BunDebugger__willHotReload(); var that = bun.default_allocator.create(HotReloadTask) catch unreachable; that.* = this.*; |