|
|
@@ -46,15 +46,15 @@ import { defineLegacyVNodeProperties } from './compat/renderFn'
|
|
|
import { callWithAsyncErrorHandling, ErrorCodes } from './errorHandling'
|
|
|
import { ComponentPublicInstance } from './componentPublicInstance'
|
|
|
|
|
|
-export const Fragment = Symbol(__DEV__ ? 'Fragment' : undefined) as any as {
|
|
|
+export const Fragment = Symbol.for('v-fgt') as any as {
|
|
|
__isFragment: true
|
|
|
new (): {
|
|
|
$props: VNodeProps
|
|
|
}
|
|
|
}
|
|
|
-export const Text = Symbol(__DEV__ ? 'Text' : undefined)
|
|
|
-export const Comment = Symbol(__DEV__ ? 'Comment' : undefined)
|
|
|
-export const Static = Symbol(__DEV__ ? 'Static' : undefined)
|
|
|
+export const Text = Symbol.for('v-txt')
|
|
|
+export const Comment = Symbol.for('v-cmt')
|
|
|
+export const Static = Symbol.for('v-stc')
|
|
|
|
|
|
export type VNodeTypes =
|
|
|
| string
|