Skip to content

Commit 65a6a96

Browse files
Bump vitest and related deps
1 parent 1fbc3cb commit 65a6a96

3 files changed

Lines changed: 570 additions & 719 deletions

File tree

‎.storybook/main.ts‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { StorybookConfig } from "@storybook/react-vite";
2+
import type { InlineConfig } from "vite";
23

34
const config: StorybookConfig = {
45
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
@@ -14,6 +15,25 @@ const config: StorybookConfig = {
1415
strictMode: true,
1516
},
1617
},
18+
viteFinal: async (config) => {
19+
const { mergeConfig } = await import("vite");
20+
21+
return mergeConfig<InlineConfig, InlineConfig>(config, {
22+
server: {
23+
watch: {
24+
ignored: ["**/.direnv/**/*", "**/.jj/**/*", "**/node_modules/**/*"],
25+
},
26+
},
27+
build: {
28+
watch: {
29+
exclude: ["**/.direnv/**/*", "**/.jj/**/*", "**/node_modules/**/*"],
30+
},
31+
},
32+
});
33+
},
34+
core: {
35+
builder: "@storybook/builder-vite",
36+
},
1737
};
1838

1939
export default config;

0 commit comments

Comments
 (0)