Skip to content

Commit 7dbe206

Browse files
authored
fix(vue3): ensure 3rd party components directly imported in script setup do not show up as Anonymous Component in devtools (#2020)
1 parent a75f415 commit 7dbe206

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-vue3/src/components

1 file changed

+1
-1
lines changed

packages/app-backend-vue3/src/components/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function saveComponentName (instance, key) {
4545
}
4646

4747
function getComponentTypeName (options) {
48-
const name = options.name || options._componentTag || options.__vdevtools_guessedName
48+
const name = options.name || options._componentTag || options.__vdevtools_guessedName || options.__name
4949
if (name) {
5050
return name
5151
}

0 commit comments

Comments
 (0)