wip(ssr): initial scaffold for compiler-ssr

This commit is contained in:
Evan You
2020-02-02 00:05:27 -05:00
parent 34e61197c7
commit efbbd19b3d
26 changed files with 496 additions and 36 deletions

View File

@@ -146,10 +146,11 @@ describe('ssr: renderToString', () => {
{ msg: 'hello' },
{
// optimized slot using string push
default: ({ msg }: any, push: any) => {
default: ({ msg }: any, push: any, p: any) => {
push(`<span>${msg}</span>`)
},
_compiled: true // important to avoid slots being normalized
// important to avoid slots being normalized
_compiled: true as any
},
parent
)