This commit is contained in:
Alistair Smith
2025-09-26 00:09:23 -07:00
parent 98b24f5797
commit 4cec2ecdc6
2 changed files with 3 additions and 1 deletions

2
.vscode/launch.json generated vendored
View File

@@ -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",

View File

@@ -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| {