Skip to content

Commit 3834808

Browse files
committed
feat(vapor): add vapor flag for createVaporApp
1 parent 1ef6e6e commit 3834808

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/runtime-core/src/apiCreateApp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { ErrorCodes, callWithAsyncErrorHandling } from './errorHandling'
3535
import type { DefineComponent } from './apiDefineComponent'
3636

3737
export interface App<HostElement = any> {
38+
vapor?: boolean
3839
version: string
3940
config: AppConfig
4041

packages/runtime-vapor/src/apiCreateApp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function postPrepareApp(app: App) {
100100
)
101101
}
102102

103+
app.vapor = true
103104
const mount = app.mount
104105
app.mount = (container, ...args: any[]) => {
105106
container = normalizeContainer(container) as ParentNode

0 commit comments

Comments
 (0)