Skip to content

Commit cc479f5

Browse files
committed
feat: support displayName, closes #1494
1 parent 8d039cd commit cc479f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared-utils/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function basename (filename, ext) {
300300
}
301301

302302
export function getComponentName (options) {
303-
const name = options.name || options._componentTag
303+
const name = options.displayName || options.name || options._componentTag
304304
if (name) {
305305
return name
306306
}

0 commit comments

Comments
 (0)