Jelajahi Sumber

chore(types): disambiguate the `Comment` type in hydration.ts (#12009)

Boshen 1 tahun lalu
induk
melakukan
5d9e81d3da
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      packages/runtime-core/src/hydration.ts

+ 2 - 2
packages/runtime-core/src/hydration.ts

@@ -1,8 +1,8 @@
 import {
-  Comment,
   Fragment,
   Static,
   Text,
+  Comment as VComment,
   type VNode,
   type VNodeHook,
   createTextVNode,
@@ -195,7 +195,7 @@ export function createHydrationFunctions(
           nextNode = nextSibling(node)
         }
         break
-      case Comment:
+      case VComment:
         if (isTemplateNode(node)) {
           nextNode = nextSibling(node)
           // wrapped <transition appear>