From: zhiyuanzmj <260480378@qq.com> Date: Thu, 10 Jul 2025 01:12:22 +0000 (+0800) Subject: feat(vapor): add vapor flag for createVaporApp (#13360) X-Git-Tag: v3.6.0-alpha.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1611bb1446aee148142db02de42b3e72d6d5ac62;p=thirdparty%2Fvuejs%2Fcore.git feat(vapor): add vapor flag for createVaporApp (#13360) --- diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 6f818cd16b..a1409a7fe4 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -35,6 +35,7 @@ import { ErrorCodes, callWithAsyncErrorHandling } from './errorHandling' import type { DefineComponent } from './apiDefineComponent' export interface App { + vapor?: boolean version: string config: AppConfig diff --git a/packages/runtime-vapor/src/apiCreateApp.ts b/packages/runtime-vapor/src/apiCreateApp.ts index 834437ee35..ee4c00c880 100644 --- a/packages/runtime-vapor/src/apiCreateApp.ts +++ b/packages/runtime-vapor/src/apiCreateApp.ts @@ -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