feat: load sourcemaps at runtime when using a bun build --target=bun bundle (#10998)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
dave caruso
2024-05-21 14:41:53 -07:00
committed by GitHub
parent c03b35ecfc
commit e98c235e30
23 changed files with 1110 additions and 164 deletions

View File

@@ -369,9 +369,7 @@ pub const ByteRangeMapping = struct {
var executable_lines: Bitset = Bitset{};
var lines_which_have_executed: Bitset = Bitset{};
const parsed_mappings_ = bun.JSC.VirtualMachine.get().source_mappings.get(
source_url.slice(),
);
const parsed_mappings_ = bun.JSC.VirtualMachine.get().source_mappings.get(source_url.slice());
var functions = std.ArrayListUnmanaged(CodeCoverageReport.Block){};
try functions.ensureTotalCapacityPrecise(allocator, function_blocks.len);