refactor(compiler-core): refactor isComponentTag method (#4934)

This commit is contained in:
btea
2021-11-14 20:39:13 -06:00
committed by GitHub
parent 574070f43f
commit e1ee3c4fe8

View File

@@ -891,7 +891,7 @@ function stringifyDynamicPropNames(props: string[]): string {
}
function isComponentTag(tag: string) {
return tag[0].toLowerCase() + tag.slice(1) === 'component'
return tag === 'component' || tag === 'Component'
}
function processInlineRef(