Skip to content

Commit 9132730

Browse files
committed
refactor(codegen): simplify conditions
1 parent 583dd01 commit 9132730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/codegen/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class CodegenState {
2727
this.dataGenFns = pluckModuleFunction(options.modules, 'genData')
2828
this.directives = extend(extend({}, baseDirectives), options.directives)
2929
const isReservedTag = options.isReservedTag || no
30-
this.maybeComponent = (el: ASTElement) => !(isReservedTag(el.tag) && !el.component)
30+
this.maybeComponent = (el: ASTElement) => el.component || !isReservedTag(el.tag)
3131
this.onceId = 0
3232
this.staticRenderFns = []
3333
this.pre = false

0 commit comments

Comments
 (0)