oxc/crates/oxc_sourcemap
Tim Fish f6e42b6d85
feat(sourcemap): Add support for sourcemap debug IDs (#6221)
The sourcemap [`debugId`
proposal](https://github.com/tc39/source-map/blob/main/proposals/debug-id.md)
adds globally unique build or debug IDs to source maps and generated
code, making build artifacts self-identifying.

Support for debug IDs was added to
[`rust-sourcemap`](https://github.com/getsentry/rust-sourcemap/pull/66)
in 2023 and Sentry have made use of this to aid in matching up source
and sourcemap files without having to worry about path mismatches or
release versions.

I want to add debug ID support to Rolldown but it uses `oxc::sourcemap`
so it looks like I need to start here first!
2024-10-07 13:54:08 +08:00
..
src feat(sourcemap): Add support for sourcemap debug IDs (#6221) 2024-10-07 13:54:08 +08:00
Cargo.toml release(crates): v0.30.5 (#6163) 2024-09-29 15:20:19 +08:00
CHANGELOG.md release(crates): v0.30.4 (#6134) 2024-09-28 13:08:44 +08:00
README.md docs(sourcemap): add trailing newline to README (#5539) 2024-09-06 15:24:52 +01:00

The sourcemap implement port from rust-sourcemap, but has some different with it.

  • Encode sourcemap at parallel, including quote sourceContent and encode token to vlq mappings.
  • Avoid Sourcemap some methods overhead, like SourceMap::tokens().