Skip to content

Commit

Permalink
refactor(compiler-core): refactor isComponentTag method (#4934)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Nov 15, 2021
1 parent 574070f commit e1ee3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/transforms/transformElement.ts
Expand Up @@ -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(
Expand Down

0 comments on commit e1ee3c4

Please sign in to comment.