aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.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/bundler.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/bundler.zig')
-rw-r--r--src/bundler.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index b6f9eac26..fa3cca0d7 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -366,6 +366,7 @@ pub const Bundler = struct {
elapsed: u64 = 0,
needs_runtime: bool = false,
router: ?Router = null,
+ source_map: options.SourceMapOption = .none,
linker: Linker,
timer: SystemTimer = undefined,