@vue/compiler-ssr 3.5.22 → 3.5.23

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-ssr v3.5.22
2
+ * @vue/compiler-ssr v3.5.23
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -324,7 +324,7 @@ const ssrTransformElement = (node, context) => {
324
324
  );
325
325
  if (node.tag === "textarea") {
326
326
  const existingText = node.children[0];
327
- if (!existingText || existingText.type !== 5) {
327
+ if (!hasContentOverrideDirective(node) && (!existingText || existingText.type !== 5)) {
328
328
  const tempId = `_temp${context.temps++}`;
329
329
  propsExp.arguments = [
330
330
  compilerDom.createAssignmentExpression(
@@ -371,8 +371,7 @@ const ssrTransformElement = (node, context) => {
371
371
  ];
372
372
  }
373
373
  } else if (directives.length && !node.children.length) {
374
- const vText = compilerDom.findDir(node, "text");
375
- if (!vText) {
374
+ if (!hasContentOverrideDirective(node)) {
376
375
  const tempId = `_temp${context.temps++}`;
377
376
  propsExp.arguments = [
378
377
  compilerDom.createAssignmentExpression(
@@ -586,6 +585,9 @@ function findVModel(node) {
586
585
  (p) => p.type === 7 && p.name === "model" && p.exp
587
586
  );
588
587
  }
588
+ function hasContentOverrideDirective(node) {
589
+ return !!compilerDom.findDir(node, "text") || !!compilerDom.findDir(node, "html");
590
+ }
589
591
  function ssrProcessElement(node, context) {
590
592
  const isVoidTag = context.options.isVoidTag || shared.NO;
591
593
  const elementsToAdd = node.ssrCodegenNode.elements;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-ssr",
3
- "version": "3.5.22",
3
+ "version": "3.5.23",
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.5.22",
32
- "@vue/compiler-dom": "3.5.22"
31
+ "@vue/shared": "3.5.23",
32
+ "@vue/compiler-dom": "3.5.23"
33
33
  }
34
34
  }