vue3-yuanma/packages/runtime-dom/src/index.ts

15 lines
447 B
TypeScript
Raw Normal View History

2019-09-02 20:09:34 +00:00
import { createRenderer, VNode, createAppAPI } from '@vue/runtime-core'
2019-06-20 13:28:37 +00:00
import { nodeOps } from './nodeOps'
import { patchProp } from './patchProp'
2018-09-19 15:35:38 +00:00
2019-06-20 13:28:37 +00:00
export const render = createRenderer({
patchProp,
...nodeOps
2019-09-02 20:09:34 +00:00
}) as (vnode: VNode | null, container: HTMLElement) => void
export const createApp = createAppAPI(render)
2018-09-19 15:35:38 +00:00
// re-export everything from core
2019-08-20 13:58:10 +00:00
// h, Component, reactivity API, nextTick, flags & types
2018-10-26 19:44:50 +00:00
export * from '@vue/runtime-core'