fix(compiler-ssr): correct the variable name generated by the generator (#2065)

This commit is contained in:
HcySunYang
2020-09-15 22:00:14 +08:00
committed by GitHub
parent 7455dca11c
commit aa8dc9a507
2 changed files with 6 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ export function ssrCodegenTransform(ast: RootNode, options: CompilerOptions) {
)
context.body.push(
createCompoundExpression([
`const _cssVars = ${ssrHelpers[SSR_RESOLVE_CSS_VARS]}(`,
`const _cssVars = _${ssrHelpers[SSR_RESOLVE_CSS_VARS]}(`,
varsExp,
options.scopeId ? `, ${JSON.stringify(options.scopeId)}` : ``,
`)`