feat(vapor): add vapor flag for createVaporApp

This commit is contained in:
zhiyuanzmj 2025-05-21 14:10:33 +08:00
parent 1ef6e6edb7
commit 38348081b3
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ import { ErrorCodes, callWithAsyncErrorHandling } from './errorHandling'
import type { DefineComponent } from './apiDefineComponent' import type { DefineComponent } from './apiDefineComponent'
export interface App<HostElement = any> { export interface App<HostElement = any> {
vapor?: boolean
version: string version: string
config: AppConfig config: AppConfig

View File

@ -100,6 +100,7 @@ function postPrepareApp(app: App) {
) )
} }
app.vapor = true
const mount = app.mount const mount = app.mount
app.mount = (container, ...args: any[]) => { app.mount = (container, ...args: any[]) => {
container = normalizeContainer(container) as ParentNode container = normalizeContainer(container) as ParentNode