wip(ssr): move ssr only utils to conditional export

This commit is contained in:
Evan You
2020-01-28 22:14:43 -05:00
parent e6e2c58234
commit a7b0954f14
2 changed files with 22 additions and 10 deletions

View File

@@ -4,16 +4,13 @@ import {
ComponentInternalInstance,
VNode,
VNodeChildren,
createComponentInstance,
setupComponent,
createVNode,
renderComponentRoot,
Text,
Comment,
Fragment,
Portal,
ShapeFlags,
normalizeVNode
ssrUtils
} from 'vue'
import {
isString,
@@ -25,6 +22,13 @@ import {
import { renderProps } from './renderProps'
import { escape } from './escape'
const {
createComponentInstance,
setupComponent,
renderComponentRoot,
normalizeVNode
} = ssrUtils
// Each component has a buffer array.
// A buffer array can contain one of the following:
// - plain string