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();