Skip to content
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

Add a Method to Obtain Ownership of Source Map Fields #99

Open
SyMind opened this issue Nov 19, 2024 · 1 comment
Open

Add a Method to Obtain Ownership of Source Map Fields #99

SyMind opened this issue Nov 19, 2024 · 1 comment

Comments

@SyMind
Copy link

SyMind commented Nov 19, 2024

When using SWC to transform JavaScript, I need to convert the source map returned by SWC into the source map of rspack-sources.

I expect to reuse the data in the source map during the conversion process, so I hope there could be an API like the following:

let sources: Vec<Arc<str>> = sourcemap.take_sources();
let sources_content: Vec<Arc<str>> = sourcemap.take_sources_content();
@loewenheim
Copy link
Contributor

Hi, thank you for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants