Skip to content

Commit 4bcf9c4

Browse files
committed
fix(compiler-sfc): avoid gen useCssVars when targeting SSR in scriptSetup
1 parent 98f1934 commit 4bcf9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ export function compileScript(
14331433
if (
14341434
cssVars.length &&
14351435
// no need to do this when targeting SSR
1436-
!(options.inlineTemplate && options.templateOptions?.ssr)
1436+
!(scriptSetup && options.templateOptions?.ssr)
14371437
) {
14381438
helperImports.add(CSS_VARS_HELPER)
14391439
helperImports.add('unref')

0 commit comments

Comments
 (0)