]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor: give runtimeHelper symbols more readable names during dev
authorEvan You <yyx990803@gmail.com>
Mon, 7 Oct 2019 17:32:29 +0000 (13:32 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 7 Oct 2019 17:32:29 +0000 (13:32 -0400)
packages/compiler-core/src/runtimeHelpers.ts

index 053a45ff9f94cffec30e0e014844b6a7e014cda9..6cd63d04ce759983fcad346f4f1ee4c3e2830e68 100644 (file)
@@ -1,22 +1,22 @@
-export const FRAGMENT = Symbol()
-export const PORTAL = Symbol()
-export const COMMENT = Symbol()
-export const TEXT = Symbol()
-export const SUSPENSE = Symbol()
-export const EMPTY = Symbol()
-export const OPEN_BLOCK = Symbol()
-export const CREATE_BLOCK = Symbol()
-export const CREATE_VNODE = Symbol()
-export const RESOLVE_COMPONENT = Symbol()
-export const RESOLVE_DIRECTIVE = Symbol()
-export const APPLY_DIRECTIVES = Symbol()
-export const RENDER_LIST = Symbol()
-export const RENDER_SLOT = Symbol()
-export const CREATE_SLOTS = Symbol()
-export const TO_STRING = Symbol()
-export const MERGE_PROPS = Symbol()
-export const TO_HANDLERS = Symbol()
-export const CAMELIZE = Symbol()
+export const FRAGMENT = Symbol(__DEV__ ? `Fragment` : ``)
+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` : ``)
+export const RESOLVE_COMPONENT = Symbol(__DEV__ ? `resolveComponent` : ``)
+export const RESOLVE_DIRECTIVE = Symbol(__DEV__ ? `resolveDirective` : ``)
+export const APPLY_DIRECTIVES = Symbol(__DEV__ ? `applyDirectives` : ``)
+export const RENDER_LIST = Symbol(__DEV__ ? `renderList` : ``)
+export const RENDER_SLOT = Symbol(__DEV__ ? `renderSlot` : ``)
+export const CREATE_SLOTS = Symbol(__DEV__ ? `createSlots` : ``)
+export const TO_STRING = Symbol(__DEV__ ? `toString` : ``)
+export const MERGE_PROPS = Symbol(__DEV__ ? `mergeProps` : ``)
+export const TO_HANDLERS = Symbol(__DEV__ ? `toHandlers` : ``)
+export const CAMELIZE = Symbol(__DEV__ ? `camelize` : ``)
 
 export type RuntimeHelper =
   | typeof FRAGMENT