mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
The rolldown plugin hook could return an object map, cast it to string at node, and decode it has unnecessary json overhead at rust. So here export an new function to let rolldown could using `JSONSourceMap` to generate `Sourcemap`. |
||
|---|---|---|
| .. | ||
| 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().