fix(compiler-core): fix missing createVNode import on nested v-for

fix #2718
This commit is contained in:
Evan You 2020-12-03 11:02:53 -05:00
parent 3f8f9b67b3
commit ad4d3915d3

View File

@ -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)
}
}