Pārlūkot izejas kodu

chore: use `const` instead of `let` (#283)

fisker Cheung 6 gadi atpakaļ
vecāks
revīzija
1fbb4d22fa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/runtime-core/src/warning.ts

+ 1 - 1
packages/runtime-core/src/warning.ts

@@ -7,7 +7,7 @@ type ComponentVNode = VNode & {
   type: Component
 }
 
-let stack: VNode[] = []
+const stack: VNode[] = []
 
 type TraceEntry = {
   vnode: ComponentVNode