Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (t.isStringLiteral(body)) {
content = body.value;
}
// Just merge elements
if (t.isTemplateLiteral(body)) {
content = body.quasis.reduce((acc, e) => {
acc += e.value.raw;
return acc;
}, '');
}
const {placeholderNames} = parseAndBuildMetadata(smartFormater, content, {});
macroMap[ident.name] = {
run: template.smart(content),
placeholderNames,
}
}