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

@@ -3,7 +3,6 @@ export const PORTAL = Symbol(__DEV__ ? `Portal` : ``)
export const COMMENT = Symbol(__DEV__ ? `Comment` : ``)
export const TEXT = Symbol(__DEV__ ? `Text` : ``)
export const SUSPENSE = Symbol(__DEV__ ? `Suspense` : ``)
export const EMPTY = Symbol(__DEV__ ? `Empty` : ``)
export const OPEN_BLOCK = Symbol(__DEV__ ? `openBlock` : ``)
export const CREATE_BLOCK = Symbol(__DEV__ ? `createBlock` : ``)
export const CREATE_VNODE = Symbol(__DEV__ ? `createVNode` : ``)
@@ -27,7 +26,7 @@ export const helperNameMap: any = {
[COMMENT]: `Comment`,
[TEXT]: `Text`,
[SUSPENSE]: `Suspense`,
[EMPTY]: `Empty`,
[COMMENT]: `Comment`,
[OPEN_BLOCK]: `openBlock`,
[CREATE_BLOCK]: `createBlock`,
[CREATE_VNODE]: `createVNode`,