marko-js-archive / marko-loader

DEPRECATED: see https://github.com/marko-js/webpack
MIT License
10 stars 12 forks source link

add hydrate support #26

Closed mlrawlings closed 5 years ago

mlrawlings commented 5 years ago

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:

webpack.config.js:

module.exports = {
    entry: "./path/to/page.marko?hydrate",
    /* ... */
}