Skip to content

Commit

Permalink
Fix #3216
Browse files Browse the repository at this point in the history
  • Loading branch information
paperclover committed Jul 20, 2023
1 parent 304fb4f commit 97e3c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bun.js/javascript.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1239,8 +1239,8 @@ pub const VirtualMachine = struct {
if (strings.hasPrefixComptime(specifier, "file://")) specifier = specifier["file://".len..];

if (strings.indexOfChar(specifier, '?')) |i| {
specifier = specifier[0..i];
query_string.* = specifier[i..];
specifier = specifier[0..i];
}

return specifier;
Expand Down Expand Up @@ -1323,6 +1323,7 @@ pub const VirtualMachine = struct {
var parts = [_]string{
source_to_use,
normalized_specifier,
"../",
};

break :name bun.path.joinAbsStringBuf(
Expand Down

0 comments on commit 97e3c08

Please sign in to comment.