diff options
Diffstat (limited to 'src/options.zig')
-rw-r--r-- | src/options.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.zig b/src/options.zig index 0c0a7372a..f30594516 100644 --- a/src/options.zig +++ b/src/options.zig @@ -1390,6 +1390,7 @@ pub const BundleOptions = struct { output_dir_handle: ?Dir = null, output_dir: string = "out", + root_dir: string = "", node_modules_bundle_url: string = "", node_modules_bundle_pretty_path: string = "", @@ -2776,7 +2777,7 @@ pub const PathTemplate = struct { }; switch (field) { - .dir => try writer.writeAll(self.placeholder.dir), + .dir => try writer.writeAll(if (self.placeholder.dir.len > 0) self.placeholder.dir else "."), .name => try writer.writeAll(self.placeholder.name), .ext => try writer.writeAll(self.placeholder.ext), .hash => { |