fix(compiler-sfc): fix style injection when using normal script + setup
fix #3688
This commit is contained in:
@@ -76,7 +76,7 @@ export function genCssVarsCode(
|
||||
const context = createTransformContext(createRoot([]), {
|
||||
prefixIdentifiers: true,
|
||||
inline: true,
|
||||
bindingMetadata: bindings
|
||||
bindingMetadata: bindings.__isScriptSetup === false ? undefined : bindings
|
||||
})
|
||||
const transformed = processExpression(exp, context)
|
||||
const transformedString =
|
||||
|
||||
Reference in New Issue
Block a user