mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +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 { initGlobalAPI } from './global-api/index'
|
||||||
import { isServerRendering } from 'core/util/env'
|
import { isServerRendering } from 'core/util/env'
|
||||||
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
|
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
|
||||||
|
import { version } from 'v3'
|
||||||
|
|
||||||
initGlobalAPI(Vue)
|
initGlobalAPI(Vue)
|
||||||
|
|
||||||
@ -21,6 +22,6 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
|||||||
value: FunctionalRenderContext
|
value: FunctionalRenderContext
|
||||||
})
|
})
|
||||||
|
|
||||||
Vue.version = '__VERSION__'
|
Vue.version = version
|
||||||
|
|
||||||
export default Vue
|
export default Vue
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
export const version: string = '__VERSION__'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
ref,
|
ref,
|
||||||
shallowRef,
|
shallowRef,
|
||||||
|
Loading…
Reference in New Issue
Block a user