mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
- Related https://github.com/rolldown/rolldown/issues/2737 Probably this is still an approximation of what https://github.com/evanw/source-map-visualization does, but I tried to get some ideas from it. For comparison, I added an example from their site https://evanw.github.io/source-map-visualization/ as a snapshot in `crates/oxc_sourcemap/tests/fixtures/esbuild/visualizer.snap`. I'll mention a few notable changes in the comments. Snapshot change in rolldown repo can be found in - https://github.com/rolldown/rolldown/pull/2829 |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| 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().