提交 d45e75e5 编写于 作者: fxy060608's avatar fxy060608

fix(mp): edge case

上级 19fb8cec
......@@ -176,7 +176,10 @@ function rewriteCompileTemplate() {
compiler.compileTemplate = (
options: SFCTemplateCompileOptions
): SFCTemplateCompileResults => {
;(options.compilerOptions as any).bindingCssVars = options.ssrCssVars || []
if (options.compilerOptions) {
;(options.compilerOptions as any).bindingCssVars =
options.ssrCssVars || []
}
return compileTemplate(options)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册