Skip to content

Commit

Permalink
try removing dts from storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
riyavsinha committed May 16, 2024
1 parent de1b3b4 commit 1a68b30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { StorybookConfig } from "@storybook/react-vite";
import { withoutVitePlugins } from "@storybook/builder-vite";

const config: StorybookConfig = {
stories: ["../**/*.mdx", "../**/*.stories.@(js|jsx|mjs|ts|tsx)"],
Expand All @@ -13,5 +14,11 @@ const config: StorybookConfig = {
name: "@storybook/react-vite",
options: {},
},
async viteFinal(config) {
return {
...config,
plugins: await withoutVitePlugins(config.plugins, ["vite:dts"]),
};
},
};
export default config;

0 comments on commit 1a68b30

Please sign in to comment.