Skip to content

Commit

Permalink
feat: Exports bundle without libs (React, Antd) and TS types (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: jdickman <[email protected]>
  • Loading branch information
tibuurcio and jared-dickman authored Jan 24, 2024
1 parent 34dfe0d commit 5dbb9df
Show file tree
Hide file tree
Showing 5 changed files with 6,741 additions and 3,241 deletions.
9 changes: 8 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from "@storybook/react-vite";
import react from '@vitejs/plugin-react'
import { PluginOption, Plugin } from 'vite'
import { withoutVitePlugins } from '@storybook/builder-vite'

type StorybookVitePlugins = { plugins: (PluginOption[] | Plugin)[]; };

Expand All @@ -25,6 +25,13 @@ const config: StorybookConfig & StorybookVitePlugins = {
},

plugins: [react()],

async viteFinal(config) {
return ({
...config,
plugins: await withoutVitePlugins(config.plugins, ["vite:dts"]),
});
},
};

export default config;
Loading

0 comments on commit 5dbb9df

Please sign in to comment.