fix(compiler): export COMMENT instead EMPTY runtime helper

This commit is contained in:
Evan You
2019-10-11 10:47:59 -04:00
parent a84490858f
commit 9ad7ae479e
3 changed files with 4 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ import { processExpression } from './transformExpression'
import {
OPEN_BLOCK,
CREATE_BLOCK,
EMPTY,
COMMENT,
FRAGMENT,
APPLY_DIRECTIVES,
CREATE_VNODE
@@ -153,7 +153,7 @@ function createCodegenNodeForBranch(
branch.condition,
createChildrenCodegenNode(branch, index, context),
createCallExpression(context.helper(CREATE_BLOCK), [
context.helper(EMPTY)
context.helper(COMMENT)
])
) as IfConditionalExpression
} else {