aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bundler/bundle_v2.zig9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig
index bf7e28d2c..81c26f488 100644
--- a/src/bundler/bundle_v2.zig
+++ b/src/bundler/bundle_v2.zig
@@ -1182,7 +1182,14 @@ pub const BundleV2 = struct {
JSC.ZigString.static("result"),
output_file.toJS(
if (output_file.value == .saved)
- bun.default_allocator.dupe(u8, output_file.input.text) catch unreachable
+ bun.default_allocator.dupe(
+ u8,
+ bun.path.joinAbsString(
+ this.config.dir.toOwnedSliceLeaky(),
+ &[_]string{ this.config.outdir.toOwnedSliceLeaky(), output_file.input.text },
+ .auto,
+ ),
+ ) catch unreachable
else
"",
globalThis,