UNPKG

vue

Version:

Reactive, component-oriented view layer for modern web interfaces.

21 lines (15 loc) 424 B
import Vue from './instance/index' import { initGlobalAPI } from './global-api/index' import { isServerRendering } from 'core/util/env' initGlobalAPI(Vue) Object.defineProperty(Vue.prototype, '$isServer', { get: isServerRendering }) Object.defineProperty(Vue.prototype, '$ssrContext', { get () { /* istanbul ignore next */ return this.$vnode.ssrContext } }) Vue.version = '__VERSION__' export default Vue