Skip to content

Commit 8cd3e33

Browse files
committed
chore: replace to DOMNodeTypes.ELEMENT
1 parent d77f810 commit 8cd3e33

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ import {
7272
} from './components/Teleport'
7373
import { type KeepAliveContext, isKeepAlive } from './components/KeepAlive'
7474
import { isHmrUpdating, registerHMR, unregisterHMR } from './hmr'
75-
import { type RootHydrateFunction, createHydrationFunctions } from './hydration'
75+
import {
76+
DOMNodeTypes,
77+
type RootHydrateFunction,
78+
createHydrationFunctions,
79+
} from './hydration'
7680
import { invokeDirectiveHook } from './directives'
7781
import { endMeasure, startMeasure } from './profiling'
7882
import {
@@ -2230,7 +2234,7 @@ function baseCreateRenderer(
22302234
}
22312235

22322236
const getFirstElement = (cur: RendererNode, end: RendererNode) => {
2233-
while (cur.nodeType !== Node.ELEMENT_NODE && cur !== end) {
2237+
while (cur.nodeType !== DOMNodeTypes.ELEMENT && cur !== end) {
22342238
cur = hostNextSibling(cur)!
22352239
}
22362240

0 commit comments

Comments
 (0)