aboutsummaryrefslogtreecommitdiff
path: root/src/feature_flags.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-04-30 22:09:40 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-30 22:09:40 -0700
commit0490bd3d2ee7b9b7fb2748be52dbbb6d49b21673 (patch)
tree52792ea88e4a132ee1d5094a38ea4fd6b28ce711 /src/feature_flags.zig
parent137dc6e19fedc31e32e25e1a8d7d04070f1a9a27 (diff)
downloadbun-0490bd3d2ee7b9b7fb2748be52dbbb6d49b21673.tar.gz
bun-0490bd3d2ee7b9b7fb2748be52dbbb6d49b21673.tar.zst
bun-0490bd3d2ee7b9b7fb2748be52dbbb6d49b21673.zip
Implement source maps (#2770)
* wip * Begin computing source map tables * source map progress * external source maps * fix merge * remove `@as` coercion * inline source maps and output source map shifts * fix `codeWithSourceMapShifts()` after merge * remove second call to `findReachableFiles()` * use `worker.allocator`, remove comment * don't reuse memory for source and sourceContents * don't reuse `quote_buf` * fix writing to stdout * Add comment * Don't include a sourcemap if the text was empty * Make the parser faster * +16% faster sourcemap generation @dylan-conway I'll need you to look this over to make sure I didn't mess anything up Though it currently doesn't generate the offsets in the right order... * 30% performance improvement to Bun.build() * Print `debugId` in source maps cc @mitsuhiko @notzeeg --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/feature_flags.zig')
-rw-r--r--src/feature_flags.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature_flags.zig b/src/feature_flags.zig
index c2055cbb6..c7a2f4819 100644
--- a/src/feature_flags.zig
+++ b/src/feature_flags.zig
@@ -161,3 +161,8 @@ pub const help_catch_memory_issues = @import("root").bun.Environment.allow_asser
pub const unwrap_commonjs_to_esm = true;
pub const boundary_based_chunking = true;
+
+/// https://sentry.engineering/blog/the-case-for-debug-ids
+/// https://github.com/mitsuhiko/source-map-rfc/blob/proposals/debug-id/proposals/debug-id.md
+/// https://github.com/source-map/source-map-rfc/pull/20
+pub const source_map_debug_id = true;