@vue/compiler-ssr 3.4.23 → 3.4.24
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 +18 -9
- package/package.json +3 -3
package/dist/compiler-ssr.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-ssr v3.4.
|
|
2
|
+
* @vue/compiler-ssr v3.4.24
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -137,14 +137,20 @@ const ssrTransformSlotOutlet = (node, context) => {
|
|
|
137
137
|
args.push(`"${context.scopeId}-s"`);
|
|
138
138
|
}
|
|
139
139
|
let method = SSR_RENDER_SLOT;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
let parent = context.parent;
|
|
141
|
+
if (parent) {
|
|
142
|
+
const children = parent.children;
|
|
143
|
+
if (parent.type === 10) {
|
|
144
|
+
parent = context.grandParent;
|
|
145
|
+
}
|
|
146
|
+
let componentType;
|
|
147
|
+
if (parent.type === 1 && parent.tagType === 1 && ((componentType = compilerDom.resolveComponentType(parent, context, true)) === compilerDom.TRANSITION || componentType === compilerDom.TRANSITION_GROUP) && children.filter((c) => c.type === 1).length === 1) {
|
|
148
|
+
method = SSR_RENDER_SLOT_INNER;
|
|
149
|
+
if (!(context.scopeId && context.slotted !== false)) {
|
|
150
|
+
args.push("null");
|
|
151
|
+
}
|
|
152
|
+
args.push("true");
|
|
146
153
|
}
|
|
147
|
-
args.push("true");
|
|
148
154
|
}
|
|
149
155
|
node.ssrCodegenNode = compilerDom.createCallExpression(context.helper(method), args);
|
|
150
156
|
}
|
|
@@ -370,7 +376,10 @@ const ssrTransformElement = (node, context) => {
|
|
|
370
376
|
}
|
|
371
377
|
if (prop.type === 7) {
|
|
372
378
|
if (prop.name === "html" && prop.exp) {
|
|
373
|
-
rawChildrenMap.set(
|
|
379
|
+
rawChildrenMap.set(
|
|
380
|
+
node,
|
|
381
|
+
compilerDom.createCompoundExpression([`(`, prop.exp, `) ?? ''`])
|
|
382
|
+
);
|
|
374
383
|
} else if (prop.name === "text" && prop.exp) {
|
|
375
384
|
node.children = [compilerDom.createInterpolation(prop.exp, prop.loc)];
|
|
376
385
|
} else if (prop.name === "slot") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.24",
|
|
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.4.
|
|
32
|
-
"@vue/compiler-dom": "3.4.
|
|
31
|
+
"@vue/shared": "3.4.24",
|
|
32
|
+
"@vue/compiler-dom": "3.4.24"
|
|
33
33
|
}
|
|
34
34
|
}
|