@vue/compiler-ssr 3.1.1 → 3.1.2

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.
@@ -363,7 +363,8 @@ function ssrProcessComponent(node, context) {
363
363
  return ssrProcessTransitionGroup(node, context);
364
364
  }
365
365
  else {
366
- // real fall-through (e.g. KeepAlive): just render its children.
366
+ // real fall-through: Transition / KeepAlive
367
+ // just render its children.
367
368
  processChildren(node.children, context);
368
369
  }
369
370
  }
@@ -1003,6 +1004,15 @@ const ssrInjectFallthroughAttrs = (node, context) => {
1003
1004
  if (node.type === 0 /* ROOT */) {
1004
1005
  context.identifiers._attrs = 1;
1005
1006
  }
1007
+ if (node.type === 1 /* ELEMENT */ &&
1008
+ node.tagType === 1 /* COMPONENT */ &&
1009
+ (compilerDom.isBuiltInType(node.tag, 'Transition') ||
1010
+ compilerDom.isBuiltInType(node.tag, 'KeepAlive'))) {
1011
+ if (hasSingleChild(node)) {
1012
+ injectFallthroughAttrs(node.children[0]);
1013
+ }
1014
+ return;
1015
+ }
1006
1016
  const parent = context.parent;
1007
1017
  if (!parent || parent.type !== 0 /* ROOT */) {
1008
1018
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-ssr",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
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/vue-next/tree/master/packages/compiler-ssr#readme",
30
30
  "dependencies": {
31
- "@vue/shared": "3.1.1",
32
- "@vue/compiler-dom": "3.1.1"
31
+ "@vue/shared": "3.1.2",
32
+ "@vue/compiler-dom": "3.1.2"
33
33
  }
34
34
  }