diff --git a/packages/compiler-core/src/runtimeHelpers.ts b/packages/compiler-core/src/runtimeHelpers.ts index 053a45ff..6cd63d04 100644 --- a/packages/compiler-core/src/runtimeHelpers.ts +++ b/packages/compiler-core/src/runtimeHelpers.ts @@ -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