rollup-plugin-express-svelte Svelte Themes

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

Loading Svelte Themes