diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index dcc5639bd0..0f9250b90d 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -7633,7 +7633,7 @@ pub const LinkerContext = struct { c.log.addRangeErrorWithNotes(source, record.range, text, notes.items) catch bun.outOfMemory(); - notes.resize(0) catch bun.outOfMemory(); + notes.clearRetainingCapacity(); } } }