swc_core::base::sourcemap

Function decode_slice

pub fn decode_slice(slice: &[u8]) -> Result<DecodedMap, Error>
Available on crate feature __base only.
Expand description

Decodes a sourcemap or sourcemap index from a byte slice

This supports both sourcemaps and sourcemap indexes unless the specialized methods on the individual types.