Skip to content

Commit ad4d391

Browse files
committed
fix(compiler-core): fix missing createVNode import on nested v-for
fix #2718
1 parent 3f8f9b6 commit ad4d391

File tree

1 file changed

+4
-1
lines changed
  • packages/compiler-core/src/transforms

1 file changed

+4
-1
lines changed

packages/compiler-core/src/transforms/vFor.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ import {
3737
RENDER_LIST,
3838
OPEN_BLOCK,
3939
CREATE_BLOCK,
40-
FRAGMENT
40+
FRAGMENT,
41+
CREATE_VNODE
4142
} from '../runtimeHelpers'
4243
import { processExpression } from './transformExpression'
4344
import { validateBrowserExpression } from '../validateExpression'
@@ -168,6 +169,8 @@ export const transformFor = createStructuralDirectiveTransform(
168169
if (childBlock.isBlock) {
169170
helper(OPEN_BLOCK)
170171
helper(CREATE_BLOCK)
172+
} else {
173+
helper(CREATE_VNODE)
171174
}
172175
}
173176

0 commit comments

Comments
 (0)