diff options
Diffstat (limited to 'src/cli/run_command.zig')
-rw-r--r-- | src/cli/run_command.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index 4593f5f6a..c4c9e5f10 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -487,6 +487,7 @@ pub const RunCommand = struct { if (shebang.len > 2 and strings.eqlComptimeIgnoreLen(shebang[0..2], "#!")) { break :possibly_open_with_bun_js; } + Global.configureAllocator(.{ .long_running = true }); Run.boot(ctx, file, ctx.allocator.dupe(u8, file_path) catch unreachable) catch |err| { if (Output.enable_ansi_colors) { @@ -512,6 +513,9 @@ pub const RunCommand = struct { } } } + + Global.configureAllocator(.{ .long_running = false }); + var args = ctx.args; args.node_modules_bundle_path = null; args.node_modules_bundle_path_server = null; |