pub async fn trace_source_map(
map: &SourceMap,
line: u32,
column: u32,
name: Option<&str>,
) -> Result<TraceResult>
Expand description
Traces the line/column through the source map into its original position.
This method is god-awful slow. We’re getting the content of a .map file, which means we’re serializing all of the individual sections into a string and concatenating, taking that and deserializing into a DecodedMap, and then querying it. Besides being a memory hog, it’d be so much faster if we could just directly access the individual sections of the JS file’s map without the serialization.