Skip to content

fix(runtime-dom): make the rendering of <template> consistent with native behavior #13200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KazariEX
Copy link
Member

@KazariEX KazariEX commented Apr 14, 2025

fix #4613

I tried to fix the ssr behavior, but I couldn't solve the hydration mismatch no matter what 😄

Copy link

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 101 kB (+79 B) 38.2 kB (+25 B) 34.4 kB (+63 B)
vue.global.prod.js 158 kB (+79 B) 58.3 kB 51.9 kB (+51 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 46.5 kB (+79 B) 18.2 kB (+30 B) 16.6 kB (+34 B)
createApp 54.5 kB (+79 B) 21.2 kB (+29 B) 19.4 kB (+36 B)
createSSRApp 58.7 kB (+79 B) 22.9 kB (+40 B) 20.9 kB (+24 B)
defineCustomElement 59.3 kB (+79 B) 22.7 kB (+22 B) 20.7 kB (+12 B)
overall 68.6 kB (+79 B) 26.4 kB (+27 B) 24 kB (+37 B)

Copy link

pkg-pr-new bot commented Apr 14, 2025

Open in StackBlitz

@vue/compiler-core

npm i https://pkg.pr.new/@vue/compiler-core@13200

@vue/compiler-dom

npm i https://pkg.pr.new/@vue/compiler-dom@13200

@vue/compiler-ssr

npm i https://pkg.pr.new/@vue/compiler-ssr@13200

@vue/compiler-sfc

npm i https://pkg.pr.new/@vue/compiler-sfc@13200

@vue/reactivity

npm i https://pkg.pr.new/@vue/reactivity@13200

@vue/runtime-core

npm i https://pkg.pr.new/@vue/runtime-core@13200

@vue/runtime-dom

npm i https://pkg.pr.new/@vue/runtime-dom@13200

@vue/server-renderer

npm i https://pkg.pr.new/@vue/server-renderer@13200

@vue/shared

npm i https://pkg.pr.new/@vue/shared@13200

vue

npm i https://pkg.pr.new/vue@13200

@vue/compat

npm i https://pkg.pr.new/@vue/compat@13200

commit: ed2f4ea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

a <template> vnode rendered is not compatible with the standard native browser <template> element.
2 participants