wip: return empty string if no cssVars are present

This commit is contained in:
Evan You 2020-11-19 12:33:17 -05:00
parent 03b2bfff09
commit 6541e70acb

View File

@ -26,7 +26,7 @@ export function generateCssVars(
id: string, id: string,
isProd: boolean isProd: boolean
): string { ): string {
return genCssVarsFromList(sfc.cssVars, id, isProd) return sfc.cssVars.length ? genCssVarsFromList(sfc.cssVars, id, isProd) : ''
} }
function genCssVarsFromList( function genCssVarsFromList(