feat: export version as named export

This commit is contained in:
Evan You 2022-06-16 11:17:09 +08:00
parent 5a0cc58b91
commit 749b96d84e
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import Vue from './instance/index'
import { initGlobalAPI } from './global-api/index'
import { isServerRendering } from 'core/util/env'
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
import { version } from 'v3'
initGlobalAPI(Vue)
@ -21,6 +22,6 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
})
Vue.version = '__VERSION__'
Vue.version = version
export default Vue

View File

@ -1,3 +1,5 @@
export const version: string = '__VERSION__'
export {
ref,
shallowRef,