Files
allmy.work/vite.config.ts
Ilia Mashkov 0b2eae33b1 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
2026-03-07 13:35:26 +03:00

19 lines
489 B
TypeScript

import path from "node:path";
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [sveltekit()],
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/*",
},
},
});