- 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
19 lines
489 B
TypeScript
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/*",
|
|
},
|
|
},
|
|
});
|