From 4cec2ecdc64db5a8e9331f0fdb1bef7ea201fb6a Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Fri, 26 Sep 2025 00:09:23 -0700 Subject: [PATCH] changes --- .vscode/launch.json | 2 +- src/bake/production.zig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 43ba590faf..1ddf63e9cd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -59,7 +59,7 @@ "request": "launch", "name": "bun run [file]", "program": "${workspaceFolder}/build/debug/bun-debug", - "args": ["--app"], + "args": ["build", "--app"], "cwd": "${fileDirname}", "env": { "FORCE_COLOR": "0", diff --git a/src/bake/production.zig b/src/bake/production.zig index ec6aede878..321f3186e8 100644 --- a/src/bake/production.zig +++ b/src/bake/production.zig @@ -445,6 +445,7 @@ pub fn buildWithVm(ctx: bun.cli.Command.Context, cwd: []const u8, vm: *VirtualMa const runtime_file_index = maybe_runtime_file_index orelse { bun.Output.panic("Runtime file not found. This is an unexpected bug in Bun. Please file a bug report on GitHub.", .{}); }; + const any_client_chunks = any_client_chunks: { for (bundled_outputs) |file| { if (file.side) |s| { @@ -455,6 +456,7 @@ pub fn buildWithVm(ctx: bun.cli.Command.Context, cwd: []const u8, vm: *VirtualMa } break :any_client_chunks false; }; + if (any_client_chunks) { const runtime_file: *const OutputFile = &bundled_outputs[runtime_file_index]; _ = runtime_file.writeToDisk(root_dir, ".") catch |err| {