rollup-plugin-express-svelte

Rollup Plugin Express Svelte

A rollup plugin to bundle views with complete or partial hydration from express-svelte package.

rollup-plugin-express-svelte

A rollup plugin to bundle views with complete or partial hydration from express-svelte package.

Work in progress - Partial hydration is not working yet.

Install

Install via npm.

npm install rollup-plugin-express-svelte --save

Options

hydratable

Type: String
Default: "complete"

Specifies the hydration approach to be made. complete will hydrate the whole view while partial will only hydrate components wrapped by <Hydrate /> component.

For complete approach, by default the target value is document.body and the anchor is null. If you want to customize these values, add a class view-target and view-anchor to desired elements within the root template.

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes