2018-10-27 03:44:50 +08:00
|
|
|
import { createRenderer, VNode, Component } from '@vue/runtime-core'
|
2018-09-19 23:35:38 +08:00
|
|
|
import { nodeOps } from './nodeOps'
|
|
|
|
import { patchData } from './patchData'
|
|
|
|
import { teardownVNode } from './teardownVNode'
|
|
|
|
|
2018-09-20 09:51:21 +08:00
|
|
|
const { render: _render } = createRenderer({
|
2018-09-19 23:35:38 +08:00
|
|
|
nodeOps,
|
|
|
|
patchData,
|
|
|
|
teardownVNode
|
|
|
|
})
|
|
|
|
|
2018-10-11 01:13:27 +08:00
|
|
|
type publicRender = (
|
|
|
|
node: VNode | null,
|
|
|
|
container: HTMLElement
|
2018-10-17 03:47:51 +08:00
|
|
|
) => Component | null
|
2018-09-20 09:51:21 +08:00
|
|
|
export const render = _render as publicRender
|
2018-09-19 23:35:38 +08:00
|
|
|
|
2018-09-20 09:51:21 +08:00
|
|
|
// re-export everything from core
|
2018-09-22 01:34:00 +08:00
|
|
|
// h, Component, observer API, nextTick, flags & types
|
2018-10-27 03:44:50 +08:00
|
|
|
export * from '@vue/runtime-core'
|