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.
defineComponent
1 parent 1af3531 commit 304830aCopy full SHA for 304830a
packages/runtime-core/src/apiDefineComponent.ts
@@ -205,5 +205,7 @@ export function defineComponent<
205
206
// implementation, close to no-op
207
export function defineComponent(options: unknown) {
208
- return isFunction(options) ? { setup: options } : options
+ return isFunction(options)
209
+ ? { setup: options, name: options.name }
210
+ : options
211
}
0 commit comments