Module collapse_sourcemap

Source

Structs§

CollapseSourcemapOptions
CollapsedSourceMap

Functions§

collapse_sourcemap_chain
collapse source map chain to a single source.
lookup_token
if map_token is not exact match, we should use the token next to it to make sure the line mapping is correct. this is because lookup_token of SourceMap will return the last found token instead of the next if it can’t find exact match, which leads to wrong line mapping(mapping to previous line).
read_source_content