To quote from the web.dev article on serializing Declarative Shadow DOM
Passing the
includeShadowRoots:true
option serializes the entire subtree of an element, including its shadow roots. The included shadow roots are serialized using the<template shadowroot>
syntax.
In the context of server side renderinbg (SSR), I'm not sure if it is saying that if it was set to false
a) It would not literally does not render shadow roots at all
b) just doesn't render / return them in <template>
So for example, given these custom elements + shadowRoot