Merge branch 'create-vapor-app' into jsx-vapor

This commit is contained in:
zhiyuanzmj 2025-05-30 09:07:39 +08:00
commit 335b107598
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'
export interface App<HostElement = any> {
vapor?: boolean
version: string
config: AppConfig

View File

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