Skip to content

Commit

Permalink
feat: export version as named export
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 16, 2022
1 parent 5a0cc58 commit 749b96d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -21,6 +22,6 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
})

Vue.version = '__VERSION__'
Vue.version = version

export default Vue
2 changes: 2 additions & 0 deletions src/v3/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const version: string = '__VERSION__'

export {
ref,
shallowRef,
Expand Down

0 comments on commit 749b96d

Please sign in to comment.