Closed Swatinem closed 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.
Confirmed, just tested it end to end, it works!
fixes #21
This exposes a new
SourceMapHermes
type, which can look up the scope name via a bytecode offset.