@@ -188,11 +188,8 @@ function renderComponentSubTree(
slotScopeId
)
} else {
- warn(
- `Component ${
- comp.name ? `${comp.name} ` : ``
- } is missing template or render function.`
- )
+ const componentName = comp.name || comp.__file || `<Anonymous>`
+ warn(`Component ${componentName} is missing template or render function.`)
push(`<!---->`)
}