newsuk/times-components

bundle: add hydration checks

craigbilner opened this issue · 1 comments

Do you want to request a feature or report a bug?

feature

What is the current behaviour?

it's possible to break the site by creating client side bundles that cannot hydrate the server rendered code plus it's a perf killer

What is the expected behaviour?

CI runs a hydration check for each of the bundles and exits with a non zero code if it errors

If this is a feature request, what is the motivation or use case for changing
the behaviour?

@craigbilner can you please provide use cases when this would happen?