mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
import errors have code set to ERR_MODULE_NOT_FOUND and require errors have code set to MODULE_NOT_FOUND (#4244)
* ResolveMessage * Fix it --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -1652,7 +1652,7 @@ pub const VirtualMachine = struct {
|
||||
),
|
||||
.metadata = .{
|
||||
// import_kind is wrong probably
|
||||
.resolve = .{ .specifier = logger.BabyString.in(printed, specifier_utf8.slice()), .import_kind = .stmt },
|
||||
.resolve = .{ .specifier = logger.BabyString.in(printed, specifier_utf8.slice()), .import_kind = if (is_esm) .stmt else .require },
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user