mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Fix bug with bun build --compile (#5102)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,9 @@ describe("bundler", () => {
|
||||
files: {
|
||||
"/entry.ts": `
|
||||
// testing random features of bun
|
||||
import 'node:process';
|
||||
import 'process';
|
||||
|
||||
import { Database } from "bun:sqlite";
|
||||
import { serve } from 'bun';
|
||||
import { getRandomSeed } from 'bun:jsc';
|
||||
|
||||
Reference in New Issue
Block a user