Skip to content

Commit 749b96d

Browse files
committed
feat: export version as named export
1 parent 5a0cc58 commit 749b96d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: src/core/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Vue from './instance/index'
22
import { initGlobalAPI } from './global-api/index'
33
import { isServerRendering } from 'core/util/env'
44
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
5+
import { version } from 'v3'
56

67
initGlobalAPI(Vue)
78

@@ -21,6 +22,6 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
2122
value: FunctionalRenderContext
2223
})
2324

24-
Vue.version = '__VERSION__'
25+
Vue.version = version
2526

2627
export default Vue

Diff for: src/v3/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const version: string = '__VERSION__'
2+
13
export {
24
ref,
35
shallowRef,

0 commit comments

Comments
 (0)