fix(compiler-sfc): correctly remove parens used for wrapping (#3582)

fix #3581
This commit is contained in:
HcySunYang
2021-05-29 04:02:31 +08:00
committed by GitHub
parent 6fbf0dd315
commit 6bfb50aff9
3 changed files with 13 additions and 7 deletions

View File

@@ -622,9 +622,11 @@ const c = _ref(__c);
const d = _ref(__d);
const f = _ref(__f);
const g = _ref(__g);
console.log(n.value, a.value, c.value, d.value, f.value, g.value)
const { foo: __foo } = useSomthing(() => 1);
const foo = _ref(__foo);
console.log(n.value, a.value, c.value, d.value, f.value, g.value, foo.value)
return { n, a, c, d, f, g }
return { n, a, c, d, f, g, foo }
}
}"