Skip to content

Commit 59867ec

Browse files
javoskiyyx990803
authored andcommitted
compiler codegen improvement (#5024)
* remove unnecessary code * improve compiler codegen * change false to 0
1 parent 7963b3d commit 59867ec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/compiler/codegen/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,9 @@ function genChildren (el: ASTElement, checkSkip?: boolean): string | void {
310310
el.tag !== 'slot') {
311311
return genElement(el)
312312
}
313-
const normalizationType = getNormalizationType(children)
313+
const normalizationType = checkSkip ? getNormalizationType(children) : 0
314314
return `[${children.map(genNode).join(',')}]${
315-
checkSkip
316-
? normalizationType ? `,${normalizationType}` : ''
317-
: ''
315+
normalizationType ? `,${normalizationType}` : ''
318316
}`
319317
}
320318
}

0 commit comments

Comments
 (0)