Skip to content

Commit e1ee3c4

Browse files
authored
refactor(compiler-core): refactor isComponentTag method (#4934)
1 parent 574070f commit e1ee3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-core/src/transforms/transformElement.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ function stringifyDynamicPropNames(props: string[]): string {
891891
}
892892

893893
function isComponentTag(tag: string) {
894-
return tag[0].toLowerCase() + tag.slice(1) === 'component'
894+
return tag === 'component' || tag === 'Component'
895895
}
896896

897897
function processInlineRef(

0 commit comments

Comments
 (0)