From: daiwei Date: Thu, 24 Apr 2025 08:58:18 +0000 (+0800) Subject: wip: refactor hydration for v-if X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9c9e4903dc313840bc224a6d465ad05a990116e;p=thirdparty%2Fvuejs%2Fcore.git wip: refactor hydration for v-if --- diff --git a/packages/compiler-ssr/__tests__/ssrComponent.spec.ts b/packages/compiler-ssr/__tests__/ssrComponent.spec.ts index 2fde4560ec..7459cb4929 100644 --- a/packages/compiler-ssr/__tests__/ssrComponent.spec.ts +++ b/packages/compiler-ssr/__tests__/ssrComponent.spec.ts @@ -245,6 +245,7 @@ describe('ssr: components', () => { _push(\`\`) }) _push(\`\`) + _push(\`\`) } else { _push(\`\`) } @@ -268,6 +269,7 @@ describe('ssr: components', () => { _push(\`\`) }) _push(\`\`) + _push(\`\`) } else { _push(\`\`) } @@ -361,6 +363,7 @@ describe('ssr: components', () => { _push(\`\`) if (false) { _push(\`\`) + _push(\`\`) } else { _push(\`\`) } diff --git a/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts b/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts index 7b3d1962c3..a837979003 100644 --- a/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts +++ b/packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts @@ -29,6 +29,7 @@ describe('ssr: attrs fallthrough', () => { _push(\`\`) if (true) { _push(\`
\`) + _push(\`\`) } else { _push(\`\`) } diff --git a/packages/compiler-ssr/__tests__/ssrInjectCssVars.spec.ts b/packages/compiler-ssr/__tests__/ssrInjectCssVars.spec.ts index 9e70dac0bd..3eef5a7771 100644 --- a/packages/compiler-ssr/__tests__/ssrInjectCssVars.spec.ts +++ b/packages/compiler-ssr/__tests__/ssrInjectCssVars.spec.ts @@ -70,6 +70,7 @@ describe('ssr: inject