-
-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the problem
Currently vite-plugin-svelte defaults to hydratable: true
which is not the default for svelte and mostly due to the reason that it reliably works with and without ssr.
In situations where you don't use ssr and/or don't need clientside hydration, this leads to increased output size.
Describe the proposed solution
Only compile with hydratable: true
when one of the following is true
- compilerOptions.hydratable is set to true in svelte config
- compilerOptions.hydratable is not defined in svelte config and viteConfig.ssr exists
Alternatives considered
stick with the current default. Users that want hydratable: false
should set it in svelte config.
Importance
nice to have
bluwy
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request