import { processExpression, createTransformContext, createSimpleExpression, createRoot, NodeTypes, SimpleExpressionNode } from '@vue/compiler-dom' import { SFCDescriptor } from './parse' import { rewriteDefault } from './rewriteDefault' import { ParserPlugin } from '@babel/parser' export function genCssVarsCode( varsExp: string, scoped: boolean, knownBindings?: Record ) { const exp = createSimpleExpression(varsExp, false) const context = createTransformContext(createRoot([]), { prefixIdentifiers: true }) if (knownBindings) { // when compiling