sveltejs / rollup-plugin-svelte

Compile Svelte components with Rollup
MIT License
505 stars 79 forks source link

Per-component compiler options #226

Open reesericci opened 1 month ago

reesericci commented 1 month ago

Is your feature request related to a problem? Please describe. I want to be able to set whether to server-side render on a per-component basis because if my main component includes something that should be client side rendered, but the rest can be server-rendered, that's impossible with this plugin.

Describe the solution you'd like I'd like to be able to optionally set compiler options for each component that is imported.

Describe alternatives you've considered

Additional context codeberg.org/reesericci/actionview-svelte-handler/issues/10

[!NOTE] This issue is identical to https://github.com/EMH333/esbuild-svelte/issues/244, but I moved to rollup & this plugin