Commented code in template breaks hydration
Version
3.1.1
Reproduction link
https://codesandbox.io/s/busy-kowalevski-0qdy0?file=/src/App.vue
Steps to reproduce
- Create an SSR App
- Comment any part of the template code
- Try to render anything
What is expected?
Hydration should work without errors
What is actually happening?
Hydration fails with the message:
runtime-core.esm-bundler.js:163 [Vue warn]: Hydration children mismatch in <div>: server rendered element contains fewer child nodes than client vdom.
at <App>