Skip to content

Commit

Permalink
wip: return empty string if no cssVars are present
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 19, 2020
1 parent 03b2bff commit 6541e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/cssVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function generateCssVars(
id: string,
isProd: boolean
): string {
return genCssVarsFromList(sfc.cssVars, id, isProd)
return sfc.cssVars.length ? genCssVarsFromList(sfc.cssVars, id, isProd) : ''
}

function genCssVarsFromList(
Expand Down

0 comments on commit 6541e70

Please sign in to comment.