#36491·storybook

Svelte CSF: Support the Svelte config in vite.config.ts (SvelteKit 3)

Author: JosefikosCreated Sep 8, 2026Updated Sep 28, 2026
Labelsfeature requestsveltekit

https://github.com/storybookjs/addon-svelte-csf/blob/0ff845efcd43373e5418b70ee83fb7325d33e940/src/indexer/parser.ts#L50

Referencing to rc sveltekit post https://svelte.dev/blog/sveltekit-3-release-candidate#What's-changed-Configuration-now-lives-in-vite.config.ts sveltekit version 3 do not use svelte.config.js and loads configuration directly into via sveltekit vite plugin.

It would be nice to make possible to load own svelte configuration directly into addon-svelte-csf as new option besides current default behavior of fining svelte.config.js and loading it.

Sveltekit 3 without any custom preprocesses works out of the box event with current implemenation, but as soon as you need use any custom preprocesses it is impossible to make it working.

I don't have any experience contributing to open source, but if it's necessary to implement this change, I'm willing to help.

I appreciate your work with svelte CSF addon.