Skip to content

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

@SyMind

Description

@SyMind

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions