feat(runtime-core): respect function name when using defineComponent
function shorthand (#1661)
This commit is contained in:
parent
1af3531719
commit
304830a764
@ -205,5 +205,7 @@ export function defineComponent<
|
||||
|
||||
// implementation, close to no-op
|
||||
export function defineComponent(options: unknown) {
|
||||
return isFunction(options) ? { setup: options } : options
|
||||
return isFunction(options)
|
||||
? { setup: options, name: options.name }
|
||||
: options
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user