chore(storybook): switch to yarn and fix Storybook compatibility

- Switch from bun to yarn with node_modules linker
- Downgrade Svelte to 5.46.1 for Storybook compatibility
- Switch Storybook framework from @storybook/sveltekit to @storybook/svelte-vite
- Downgrade Storybook packages to 10.1.11
- Add FSD path aliases to vite.config.ts
- Add Svelte plugin to Storybook viteFinal to handle .svelte files
This commit is contained in:
Ilia Mashkov
2026-03-07 13:35:26 +03:00
parent 3f9f6e3f93
commit 0b2eae33b1
6 changed files with 4371 additions and 25 deletions

View File

@@ -7,6 +7,12 @@ export default defineConfig({
resolve: {
alias: {
$lib: path.resolve("./src/shared/lib"),
$shared: path.resolve("./src/shared"),
$pages: path.resolve("./src/pages"),
$features: path.resolve("./src/features"),
$entities: path.resolve("./src/entities"),
$widgets: path.resolve("./src/widgets"),
"$/*": "./src/*",
},
},
});