Skip to content

Commit 8d7ad19

Browse files
committed
expose $ssrContext
1 parent 6b4f3da commit 8d7ad19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Object.defineProperty(Vue.prototype, '$isServer', {
88
get: isServerRendering
99
})
1010

11+
Object.defineProperty(Vue.prototype, '$ssrContext', {
12+
get () {
13+
return this.$vnode.ssrContext
14+
}
15+
})
16+
1117
Vue.version = '__VERSION__'
1218

1319
export default Vue

0 commit comments

Comments
 (0)