fix(sfc): avoid auto name inference leading to unwanted recursion

fix #5965
fix #6027
fix #6029
This commit is contained in:
Evan You
2022-06-06 17:36:47 +08:00
parent 11e17a1a29
commit 9734b31c31
5 changed files with 15 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
exports[`SFC analyze <script> bindings auto name inference basic 1`] = `
"export default {
name: 'FooBar',
__name: 'FooBar',
setup(__props, { expose }) {
expose();
const a = 1