|
|
@@ -4,7 +4,7 @@ exports[`compiler: hoistStatic transform hoist element with static key 1`] = `
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"div\\", { key: \\"foo\\" }, null, -1 /* HOISTED */)
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"div\\", { key: \\"foo\\" }, null, -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|
|
|
@@ -21,9 +21,9 @@ exports[`compiler: hoistStatic transform hoist nested static tree 1`] = `
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"p\\", null, [
|
|
|
- _createVNode(\\"span\\"),
|
|
|
- _createVNode(\\"span\\")
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"p\\", null, [
|
|
|
+ /*#__PURE__*/_createVNode(\\"span\\"),
|
|
|
+ /*#__PURE__*/_createVNode(\\"span\\")
|
|
|
], -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
@@ -41,8 +41,8 @@ exports[`compiler: hoistStatic transform hoist nested static tree with comments
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode, createCommentVNode: _createCommentVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"div\\", null, [
|
|
|
- _createCommentVNode(\\"comment\\")
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"div\\", null, [
|
|
|
+ /*#__PURE__*/_createCommentVNode(\\"comment\\")
|
|
|
], -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
@@ -60,8 +60,8 @@ exports[`compiler: hoistStatic transform hoist siblings with common non-hoistabl
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"span\\", null, null, -1 /* HOISTED */)
|
|
|
-const _hoisted_2 = /*#__PURE__*/ _createVNode(\\"div\\", null, null, -1 /* HOISTED */)
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"span\\", null, null, -1 /* HOISTED */)
|
|
|
+const _hoisted_2 = /*#__PURE__*/_createVNode(\\"div\\", null, null, -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|
|
|
@@ -79,7 +79,7 @@ exports[`compiler: hoistStatic transform hoist simple element 1`] = `
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"span\\", { class: \\"inline\\" }, \\"hello\\", -1 /* HOISTED */)
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"span\\", { class: \\"inline\\" }, \\"hello\\", -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|
|
|
@@ -172,7 +172,7 @@ exports[`compiler: hoistStatic transform prefixIdentifiers hoist nested static t
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"span\\", null, \\"foo \\" + _toDisplayString(1) + \\" \\" + _toDisplayString(true), -1 /* HOISTED */)
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"span\\", null, \\"foo \\" + /*#__PURE__*/_toDisplayString(1) + \\" \\" + /*#__PURE__*/_toDisplayString(true), -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|
|
|
@@ -189,7 +189,7 @@ exports[`compiler: hoistStatic transform prefixIdentifiers hoist nested static t
|
|
|
"const _Vue = Vue
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
-const _hoisted_1 = /*#__PURE__*/ _createVNode(\\"span\\", { foo: 0 }, _toDisplayString(1), -1 /* HOISTED */)
|
|
|
+const _hoisted_1 = /*#__PURE__*/_createVNode(\\"span\\", { foo: 0 }, /*#__PURE__*/_toDisplayString(1), -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|
|
|
@@ -346,7 +346,7 @@ exports[`compiler: hoistStatic transform should hoist v-for children if static 1
|
|
|
const { createVNode: _createVNode } = _Vue
|
|
|
|
|
|
const _hoisted_1 = { id: \\"foo\\" }
|
|
|
-const _hoisted_2 = /*#__PURE__*/ _createVNode(\\"span\\", null, null, -1 /* HOISTED */)
|
|
|
+const _hoisted_2 = /*#__PURE__*/_createVNode(\\"span\\", null, null, -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|
|
|
@@ -371,7 +371,7 @@ const _hoisted_1 = {
|
|
|
key: 0,
|
|
|
id: \\"foo\\"
|
|
|
}
|
|
|
-const _hoisted_2 = /*#__PURE__*/ _createVNode(\\"span\\", null, null, -1 /* HOISTED */)
|
|
|
+const _hoisted_2 = /*#__PURE__*/_createVNode(\\"span\\", null, null, -1 /* HOISTED */)
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
with (_ctx) {
|