feat(runtime-vapor): expose vapor mode flag

This commit is contained in:
三咲智子 Kevin Deng 2024-01-24 22:11:40 +08:00
parent 5028880e5b
commit 1f134ae43a
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 3 additions and 0 deletions

View 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(),