enhanced_magic_string

Module collapse_sourcemap

Source

Structs§

Functions§

  • collapse source map chain to a single source.
  • 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).