mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 21:29:01 +00:00
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! |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| README.md | ||
The sourcemap implement port from rust-sourcemap, but has some different with it.
- Encode sourcemap at parallel, including quote
sourceContentand encode token tovlqmappings. - Avoid
Sourcemapsome methods overhead, likeSourceMap::tokens().