mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
feat: export version as named export
This commit is contained in:
parent
5a0cc58b91
commit
749b96d84e
@ -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
|
||||
|
@ -1,3 +1,5 @@
|
||||
export const version: string = '__VERSION__'
|
||||
|
||||
export {
|
||||
ref,
|
||||
shallowRef,
|
||||
|
Loading…
Reference in New Issue
Block a user