@vue/compiler-ssr 3.6.0-rc.11 → 3.6.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler-ssr.cjs.js +11 -2
- package/package.json +3 -3
package/dist/compiler-ssr.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-ssr v3.6.0-rc.
|
|
2
|
+
* @vue/compiler-ssr v3.6.0-rc.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -12,6 +12,7 @@ let _vue_shared = require("@vue/shared");
|
|
|
12
12
|
//#region packages/compiler-ssr/src/runtimeHelpers.ts
|
|
13
13
|
const SSR_INTERPOLATE = Symbol(`ssrInterpolate`);
|
|
14
14
|
const SSR_RENDER_VNODE = Symbol(`ssrRenderVNode`);
|
|
15
|
+
const SSR_RENDER_DYNAMIC_COMPONENT = Symbol(`ssrRenderDynamicComponent`);
|
|
15
16
|
const SSR_RENDER_COMPONENT = Symbol(`ssrRenderComponent`);
|
|
16
17
|
const SSR_RENDER_SLOT = Symbol(`ssrRenderSlot`);
|
|
17
18
|
const SSR_RENDER_SLOT_INNER = Symbol(`ssrRenderSlotInner`);
|
|
@@ -32,6 +33,7 @@ const SSR_GET_DIRECTIVE_PROPS = Symbol(`ssrGetDirectiveProps`);
|
|
|
32
33
|
const ssrHelpers = {
|
|
33
34
|
[SSR_INTERPOLATE]: `ssrInterpolate`,
|
|
34
35
|
[SSR_RENDER_VNODE]: `ssrRenderVNode`,
|
|
36
|
+
[SSR_RENDER_DYNAMIC_COMPONENT]: `ssrRenderDynamicComponent`,
|
|
35
37
|
[SSR_RENDER_COMPONENT]: `ssrRenderComponent`,
|
|
36
38
|
[SSR_RENDER_SLOT]: `ssrRenderSlot`,
|
|
37
39
|
[SSR_RENDER_SLOT_INNER]: `ssrRenderSlotInner`,
|
|
@@ -430,7 +432,14 @@ const ssrTransformComponent = (node, context) => {
|
|
|
430
432
|
return fn;
|
|
431
433
|
};
|
|
432
434
|
const slots = node.children.length ? (0, _vue_compiler_dom.buildSlots)(node, context, buildSSRSlotFn).slots : `null`;
|
|
433
|
-
if (typeof component !== "string") node.ssrCodegenNode = (0, _vue_compiler_dom.createCallExpression)(context.helper(
|
|
435
|
+
if (typeof component !== "string" && rawOptionsMap.get(context.root).vapor) node.ssrCodegenNode = (0, _vue_compiler_dom.createCallExpression)(context.helper(SSR_RENDER_DYNAMIC_COMPONENT), [
|
|
436
|
+
`_push`,
|
|
437
|
+
component,
|
|
438
|
+
propsExp,
|
|
439
|
+
slots,
|
|
440
|
+
`_parent`
|
|
441
|
+
]);
|
|
442
|
+
else if (typeof component !== "string") node.ssrCodegenNode = (0, _vue_compiler_dom.createCallExpression)(context.helper(SSR_RENDER_VNODE), [
|
|
434
443
|
`_push`,
|
|
435
444
|
(0, _vue_compiler_dom.createCallExpression)(context.helper(_vue_compiler_dom.CREATE_VNODE), [
|
|
436
445
|
component,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
3
|
+
"version": "3.6.0-rc.13",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.6.0-rc.
|
|
32
|
-
"@vue/compiler-dom": "3.6.0-rc.
|
|
31
|
+
"@vue/shared": "3.6.0-rc.13",
|
|
32
|
+
"@vue/compiler-dom": "3.6.0-rc.13"
|
|
33
33
|
}
|
|
34
34
|
}
|