]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(types): disambiguate the `Comment` type in hydration.ts (#12009)
authorBoshen <boshenc@gmail.com>
Tue, 24 Sep 2024 10:00:39 +0000 (18:00 +0800)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 10:00:39 +0000 (18:00 +0800)
packages/runtime-core/src/hydration.ts

index 3cde4377e60090f9d439fcc78fca2cb3ff7ca20c..82972e17174b15466a6f23051a60bf8172a4c256 100644 (file)
@@ -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>