This commit is contained in:
Brian Ng
2018-11-09 15:25:13 -06:00
committed by GitHub
parent 504b331da4
commit 4f206b2416
24 changed files with 49 additions and 63 deletions

View File

@@ -82,8 +82,8 @@ function getSingleElementDefinition(path, superRef, classRef, file) {
isMethod
? value(node.body, node.params, node.async, node.generator)
: node.value
? value(template.ast`{ return ${node.value} }`)
: prop("value", scope.buildUndefinedNode()),
? value(template.ast`{ return ${node.value} }`)
: prop("value", scope.buildUndefinedNode()),
].filter(Boolean);
return t.objectExpression(properties);