wip(ssr): vdom serialization

This commit is contained in:
Evan You
2020-01-28 18:48:27 -05:00
parent 8857b4f288
commit 6f43c4b516
11 changed files with 286 additions and 48 deletions

View File

@@ -102,8 +102,11 @@ export const camelize = _camelize as (s: string) => string
export { registerRuntimeCompiler } from './component'
// For server-renderer
// TODO move these into a conditional object to avoid exporting them in client
// builds
export { createComponentInstance, setupComponent } from './component'
export { renderComponentRoot } from './componentRenderUtils'
export { normalizeVNode } from './vnode'
// Types -----------------------------------------------------------------------
@@ -114,7 +117,7 @@ export {
Plugin,
CreateAppFunction
} from './apiCreateApp'
export { VNode, VNodeTypes, VNodeProps } from './vnode'
export { VNode, VNodeTypes, VNodeProps, VNodeChildren } from './vnode'
export {
Component,
FunctionalComponent,

View File

@@ -288,7 +288,7 @@ export function createRenderer<
internals
)
} else if (__DEV__) {
warn('Invalid HostVNode type:', n2.type, `(${typeof n2.type})`)
warn('Invalid HostVNode type:', type, `(${typeof type})`)
}
}
}