diff --git a/packages/compiler-core/src/transforms/vFor.ts b/packages/compiler-core/src/transforms/vFor.ts index aadb07edac7..2d193e60125 100644 --- a/packages/compiler-core/src/transforms/vFor.ts +++ b/packages/compiler-core/src/transforms/vFor.ts @@ -37,7 +37,8 @@ import { RENDER_LIST, OPEN_BLOCK, CREATE_BLOCK, - FRAGMENT + FRAGMENT, + CREATE_VNODE } from '../runtimeHelpers' import { processExpression } from './transformExpression' import { validateBrowserExpression } from '../validateExpression' @@ -168,6 +169,8 @@ export const transformFor = createStructuralDirectiveTransform( if (childBlock.isBlock) { helper(OPEN_BLOCK) helper(CREATE_BLOCK) + } else { + helper(CREATE_VNODE) } }