the best solution to a problem is eliminating the conditions that create that problem rather than adding another solution that creates new unique problems
Enhance implements serverside rendering for web components.
It's less than 500 LOC, interpreted not transpiled, using the standards compliant parse5 library.
You can still upgrade elements clientside (but most don't require that thx to css).
No conditionals to render!