This commit is contained in:
2022-09-13 11:03:30 +08:00
parent fa6556a0d5
commit 05b8cc7469
8 changed files with 77 additions and 35 deletions

View File

@@ -37,10 +37,14 @@ export const DOMDirectiveTransforms: Record<string, DirectiveTransform> = {
show: transformShow
}
// 生成语法树
export function compile(
template: string,
options: CompilerOptions = {}
): CodegenResult {
// template 模板
// options 不知道干啥的参数
// console.log(options)
return baseCompile(
template,
extend({}, parserOptions, options, {