Skip to content

Commit 6541e70

Browse files
committed
wip: return empty string if no cssVars are present
1 parent 03b2bff commit 6541e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/cssVars.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function generateCssVars(
2626
id: string,
2727
isProd: boolean
2828
): string {
29-
return genCssVarsFromList(sfc.cssVars, id, isProd)
29+
return sfc.cssVars.length ? genCssVarsFromList(sfc.cssVars, id, isProd) : ''
3030
}
3131

3232
function genCssVarsFromList(

0 commit comments

Comments
 (0)