chore(server renderer): readable warn message (#2890)

This commit is contained in:
tarunama
2022-05-10 10:37:00 +09:00
committed by GitHub
parent 0abcb2b80d
commit 7540a3ff1d

View File

@@ -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(`<!---->`)
}
}