rust-sourcemap icon indicating copy to clipboard operation
rust-sourcemap copied to clipboard

A library for rust that implements basic sourcemap handling

Results 14 rust-sourcemap issues
Sort by recently updated
recently updated
newest added

This is part of #71. In general I think the "nice" style of builder API is along the lines of ```rust Builder::new() .add_something() .add_more() […] .build() ``` By contrast, `SourceMapBuilder`...

Ingestion & Processing
Improvement

This crate is pretty old and has a number of outdated/unidiomatic features. For example: * `SourceMapBuilder::into_sourcemap` should be called `build`. * `SourceMap` stores tokens as an unordered vector with a...

In a sourcemap, consecutive mappings to the same location are redundant, because a mapping always applies until the end of the line or the start of the next mapping. For...

Ingestion & Processing
Improvement

Over at https://github.com/Swatinem/js-source-scopes I have been experimenting with extracting scopes, and their names from minified source; and re-mapping the individual name components using a sourcemaps `names`, with surprisingly great success....

Ingestion & Processing
Project

Please consider this issue an FYI for other Sentry users as much as anything else, since I think the fix will happen in Firefox. We recently ran into a problem...

In some case, I want to search token in reverse to find the last match token, but TokenIter impl Iteractor trait only, so `sm.tokens().rev()` will not compile.

Ingestion & Processing
Improvement

I'm trying to find a way to get original function names for lambda functions, which currently looks like it's not supported, or I'm not finding the right way to make...

Related: https://github.com/getsentry/rust-sourcemap/pull/124#discussion_r2101843799

This interning logic is not highly efficient, but it still reduces RSS noticeably.

Currently only JSON source maps appear to be supported, but eval source maps have been gaining traction as they allow for significantly faster builds.