oxc/crates/oxc_sourcemap
underfin 90d2d09022
feat(sourcemap): add Sourcemap#from_json method (#3361)
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`.
2024-05-20 22:35:14 +08:00
..
src feat(sourcemap): add Sourcemap#from_json method (#3361) 2024-05-20 22:35:14 +08:00
Cargo.toml Release crates v0.13.0 2024-05-14 23:14:15 +08:00
CHANGELOG.md Release crates v0.13.0 2024-05-14 23:14:15 +08:00
README.md

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().