We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341d18c commit e7b81c1Copy full SHA for e7b81c1
packages/macros/src/core/define-component/index.ts
@@ -53,7 +53,11 @@ export function transformDefineComponent(
53
s.overwrite(
54
root.params[0].start!,
55
root.params[0].end!,
56
- root.params.length > 1 ? `${HELPER_PREFIX}props` : '',
+ root.params.length > 1
57
+ ? `${HELPER_PREFIX}props`
58
+ : root.start === root.params[0].start!
59
+ ? '()'
60
+ : '',
61
)
62
} else if (root.params[0].type === 'ObjectPattern') {
63
const restructuredProps = root.params[0]
0 commit comments