-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sourceRoot
from SourceMapBuilder
#50
Comments
Processed We could potentially add the let sm = SourceMap::from_reader(input)?;
let processed_sm = sm.rewrite(&RewriteOptions {
extract_source_root: true,
..Default::default()
})?;
processed_sm.to_writer(output)?;
wdyt @Swatinem @loewenheim? |
The raw sourcemaps should have support for parsing/serializing from raw json, and also read/write when constructing with minimal validation. While resolving Using a default "find common path prefix" sounds interesting, but I think having a more explicit option is the better idea. |
Thank you! |
Published in |
Related: swc-project/swc#2362
I want to generate sourcemap like
but I found that
SourceMapBuilder
does not provide a way to generate a sourcemap withsourceRoot
The text was updated successfully, but these errors were encountered: