implement "nodeLinker": "isolated" in bun install (#20440)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
Dylan Conway
2025-07-09 00:19:57 -07:00
committed by Meghan Denny
parent 6eb0a4980a
commit 2a2bf27df1
99 changed files with 6255 additions and 1185 deletions

View File

@@ -3,6 +3,7 @@ const bun = @import("bun");
const assert = bun.assert;
const mem = std.mem;
const testing = std.testing;
const OOM = bun.OOM;
/// An array that efficiently tracks which elements are in use.
/// The pointers are intended to be stable
@@ -114,7 +115,7 @@ pub fn HiveArray(comptime T: type, comptime capacity: u16) type {
return self.allocator.create(T) catch bun.outOfMemory();
}
pub fn tryGet(self: *This) !*T {
pub fn tryGet(self: *This) OOM!*T {
if (comptime capacity > 0) {
if (self.hive.get()) |value| {
return value;