wip: fix cssVars option warning check

This commit is contained in:
Evan You 2020-11-19 15:32:32 -05:00
parent 0e86cbfcf2
commit a9424354b0

View File

@ -171,7 +171,7 @@ function doCompileTemplate({
nodeTransforms = [transformAssetUrl, transformSrcset] nodeTransforms = [transformAssetUrl, transformSrcset]
} }
if (ssr && !compilerOptions.ssrCssVars) { if (ssr && compilerOptions.ssrCssVars == null) {
warnOnce( warnOnce(
`compileTemplate is called with \`ssr: true\` but no ` + `compileTemplate is called with \`ssr: true\` but no ` +
`corresponding \`ssrCssVars\` option. The value can be generated by ` + `corresponding \`ssrCssVars\` option. The value can be generated by ` +