refactor(compiler-core): refactor isComponentTag method (#4934)
This commit is contained in:
parent
574070f43f
commit
e1ee3c4fe8
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user