getsentry / rust-sourcemap

A library for rust that implements basic sourcemap handling
Other
224 stars 27 forks source link

feat: Support Hermes (react-native) SourceMaps #22

Closed Swatinem closed 4 years ago

Swatinem commented 4 years ago

fixes #21

This exposes a new SourceMapHermes type, which can look up the scope name via a bytecode offset.

mitsuhiko commented 4 years ago

Yeah. This is all a bit meh. I think one way we could go forward is instead of exposing the source map as the primary API to have view objects over them that provide the most common operations.

We already effectively do something like this in symbolic where a source map often only makes sense when paired with the source view of the minified code.

Might be worth looking into the firefox developer tools. They might have found better abstractions.

HazAT commented 4 years ago

Confirmed, just tested it end to end, it works!