Skip to main content

parse_source_mapping_url

Function parse_source_mapping_url 

Source
pub fn parse_source_mapping_url(source: &str) -> Option<SourceMappingUrl>
Expand description

Extract the sourceMappingURL from generated source code.

Looks for //# sourceMappingURL=<url> or //@ sourceMappingURL=<url> comments. For inline data URIs (data:application/json;base64,...), decodes the base64 content. Returns None if no sourceMappingURL is found.