test: test transformElements

This commit is contained in:
Evan You
2019-09-23 20:45:40 -04:00
parent c20975ec68
commit dcf4764360
13 changed files with 433 additions and 71 deletions

View File

@@ -147,6 +147,9 @@ export function generate(
if (!prefixIdentifiers) {
push(`with (this) {`)
indent()
} else {
push(`const _ctx = this`)
newline()
}
push(`return `)
genChildren(ast.children, context, true /* asRoot */)