]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat(runtime-vapor): expose vapor mode flag
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Wed, 24 Jan 2024 14:11:40 +0000 (22:11 +0800)
committer三咲智子 Kevin Deng <sxzz@sxzz.moe>
Wed, 24 Jan 2024 14:11:46 +0000 (22:11 +0800)
packages/runtime-vapor/src/component.ts

index d79ae582f197cc8b51833e3a5c2168f8e0be9e65..7ed267668ca5a7ab2d69d8a8ec43c03c33e81bab 100644 (file)
@@ -47,6 +47,8 @@ export interface ComponentInternalInstance {
   refs: Data
   metadata: WeakMap<Node, ElementMetadata>
 
+  vapor: true
+
   /** directives */
   dirs: Map<Node, DirectiveBinding[]>
 
@@ -157,6 +159,7 @@ export const createComponentInstance = (
     setupState: EMPTY_OBJ,
     refs: EMPTY_OBJ,
     metadata: new WeakMap(),
+    vapor: true,
 
     dirs: new Map(),