wip(compiler): property deduping

This commit is contained in:
Evan You
2019-09-25 12:39:46 -04:00
parent f79433cbb3
commit 3e8cd3f25f
7 changed files with 111 additions and 41 deletions

View File

@@ -453,7 +453,7 @@ function genObjectExpression(node: ObjectExpression, context: CodegenContext) {
genExpressionAsPropertyKey(key, context)
push(`: `)
// value
genExpression(value, context)
genNode(value, context)
if (i < properties.length - 1) {
// will only reach this if it's multilines
push(`,`)