Skip to content

Commit

Permalink
fix(compiler-core): warn when slot used on non-root template
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Aug 16, 2024
1 parent 34b673b commit c805254
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/compiler-core/src/transforms/vIf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ function createChildrenCodegenNode(
const ret = (firstChild as ElementNode).codegenNode as
| BlockCodegenNode
| MemoExpression

const vnodeCall = getMemoedVNodeCall(ret)
// Change createVNode to createBlock.
if (vnodeCall.type === NodeTypes.VNODE_CALL) {
Expand Down

0 comments on commit c805254

Please sign in to comment.