Fix bug with bun build --compile (#5102)

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2023-09-12 07:07:07 -07:00
committed by GitHub
parent b432006e43
commit 31aec4ebe3
2 changed files with 5 additions and 2 deletions

View File

@@ -1516,9 +1516,9 @@ pub const VirtualMachine = struct {
ret.result = null;
ret.path = specifier;
return;
} else if (JSC.HardcodedModule.Map.get(specifier)) |result| {
} else if (JSC.HardcodedModule.Aliases.get(specifier, .bun)) |result| {
ret.result = null;
ret.path = @as(string, @tagName(result));
ret.path = result.path;
return;
}