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]
}
if (ssr && !compilerOptions.ssrCssVars) {
if (ssr && compilerOptions.ssrCssVars == null) {
warnOnce(
`compileTemplate is called with \`ssr: true\` but no ` +
`corresponding \`ssrCssVars\` option. The value can be generated by ` +