ionic-team / stencil-ds-output-targets

These are output targets that can be added to Stencil for React and Angular.
https://stenciljs.com
MIT License
251 stars 117 forks source link

feat(react): support to ignore certain components for SSR #540

Closed christian-bromann closed 1 week ago

christian-bromann commented 1 week ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

Currently if a user provides a hydrateModule option, the output target creates server side renderable components for all components. If a user wants to slowly roll out SSR as a feature, they won't be able to without manually updating the compiled files.

What is the new behavior?

This patch introduces a new option called excludeServerSideRenderingFor which allows user to provide a list of component tags which should be excluded from being server side rendered.

Does this introduce a breaking change?

Other information

n/a