When rendering a Marko template serverside, only components that can re-render need their full template in the browser. This PR adds supports for only loading the needed parts to hydrate with two options:
?dependencies includes only the dependencies that are needed in the browser (css, dynamic components)
?hydrate includes these dependencies and also kicks off hydration & component initialization
When rendering a Marko template serverside, only components that can re-render need their full template in the browser. This PR adds supports for only loading the needed parts to hydrate with two options:
?dependencies
includes only the dependencies that are needed in the browser (css, dynamic components)?hydrate
includes these dependencies and also kicks off hydration & component initializationwebpack.config.js: