Skip to content

Commit 2e4af85

Browse files
committed
fix(compiler-sfc): avoid gen useCssVars when targeting SSR in scriptSetup
1 parent 9617dd4 commit 2e4af85

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
@@ -1313,7 +1313,7 @@ export function compileScript(
13131313
if (
13141314
cssVars.length &&
13151315
// no need to do this when targeting SSR
1316-
!(options.inlineTemplate && options.templateOptions?.ssr)
1316+
!(scriptSetup && options.templateOptions?.ssr)
13171317
) {
13181318
helperImports.add(CSS_VARS_HELPER)
13191319
helperImports.add('unref')

0 commit comments

Comments
 (0)