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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(