feat(compiler): mark hoisted trees with patchFlag

This commit is contained in:
Evan You
2020-02-12 13:31:29 -05:00
parent d866d389f3
commit 175f8aae8d
6 changed files with 25 additions and 17 deletions

View File

@@ -81,8 +81,8 @@ describe('scopeId compiler support', () => {
expect(code).toMatch(
[
`_pushScopeId("test")`,
`const _hoisted_1 = _createVNode("div", null, "hello")`,
`const _hoisted_2 = _createVNode("div", null, "world")`,
`const _hoisted_1 = _createVNode("div", null, "hello", -1)`,
`const _hoisted_2 = _createVNode("div", null, "world", -1)`,
`_popScopeId()`
].join('\n')
)