-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Use swc instead of source-map-mappings for source maps #4348
Comments
I think sec_common need some revamp bedore this. I'm consideriing api like SourceMap.remove or storing Weak instead of Arc, but I'm not sure about it at now. Also, swc does not do remapping at the moment. |
What is insufficient with the Rust crate we already use for source map remapping, it is the one from the team that created source maps to begin with. Why move it to swc???? |
@kitsonk @kdy1 I read through Cargo.toml in |
Yet another place where we want to use
swc
is source maps.swc
hasSourceMap
struct, that might be used for that purpose.Currently source maps are generated by TS compiler and
source-map-mappings
crate is used to perform the lookup.To boil down: wanted ability to parse
tsc
generated source map file inswc
and provide high level interface to lookups using interface shown below:Ref #3983 #4323 #4140
CC @ry @kdy1
The text was updated successfully, but these errors were encountered: