Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function composeSourcemaps(formerMap, latterMap) {
if (
isNode() &&
formerMap && latterMap && latterMap.mappings
) {
return composeSourceMaps(asJSON(formerMap), asJSON(latterMap))
} else if (isNode() && formerMap) {
return asJSON(formerMap)
}
return {}
}