From: Evan You Date: Fri, 26 Jun 2020 13:03:55 +0000 (-0400) Subject: feat(runtime-core): expose version on app instance X-Git-Tag: v3.0.0-beta.16~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=056cac91855e644e94cd704ff5462c4e1acba66b;p=thirdparty%2Fvuejs%2Fcore.git feat(runtime-core): expose version on app instance close #1449 --- diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 8c0db0412e..8fb6132412 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -13,8 +13,10 @@ import { isFunction, NO, isObject } from '@vue/shared' import { warn } from './warning' import { createVNode, cloneVNode, VNode } from './vnode' import { RootHydrateFunction } from './hydration' +import { version } from '.' export interface App { + version: string config: AppConfig use(plugin: Plugin, ...options: any[]): this mixin(mixin: ComponentOptions): this @@ -126,6 +128,8 @@ export function createAppAPI( _container: null, _context: context, + version, + get config() { return context.config },