refactor(runtime-core): refactor slots resolution

Get rid of need for setup proxy in production mode and improve console
inspection in dev mode
This commit is contained in:
Evan You
2020-04-06 21:06:48 -04:00
parent c5f0f63b91
commit cb504c287f
5 changed files with 151 additions and 92 deletions

View File

@@ -68,14 +68,14 @@ describe('hot module replacement', () => {
await nextTick()
expect(serializeInner(root)).toBe(`<div>11</div>`)
// Update text while preserving state
rerender(
parentId,
compileToFunction(
`<div @click="count++">{{ count }}!<Child>{{ count }}</Child></div>`
)
)
expect(serializeInner(root)).toBe(`<div>1!1</div>`)
// // Update text while preserving state
// rerender(
// parentId,
// compileToFunction(
// `<div @click="count++">{{ count }}!<Child>{{ count }}</Child></div>`
// )
// )
// expect(serializeInner(root)).toBe(`<div>1!1</div>`)
// Should force child update on slot content change
rerender(