Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function inline(
quasi: any,
identifierName?: string,
prefix: string
): {
name: string,
hash: string,
src: string
} {
let strs = quasi.quasis.map(x => x.value.cooked)
let hash = hashArray([...strs])
let name = getName(identifierName, prefix)
let { src } = createRawStringFromQuasi(strs)
return {
name,
hash,
src
}
}