File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
|* the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
5
import { type StorybookConfig } from '@storybook/react-vite' ;
6
+ import { withoutVitePlugins } from '@storybook/builder-vite' ;
6
7
7
8
8
9
const config : StorybookConfig = {
@@ -42,5 +43,12 @@ const config: StorybookConfig = {
42
43
} ,
43
44
// https://storybook.js.org/docs/configure/images-and-assets#referencing-fonts-in-stories
44
45
staticDirs : [ '../src/assets' ] ,
46
+
47
+ async viteFinal ( config ) {
48
+ // Remove `vite-dts` plugin since it can cause some issues on storybook builds (and isn't necessary)
49
+ // https://github.com/qmhc/vite-plugin-dts/issues/275
50
+ config . plugins = await withoutVitePlugins ( config . plugins , [ 'vite:dts' ] ) ;
51
+ return config ;
52
+ } ,
45
53
} ;
46
54
export default config ;
You can’t perform that action at this time.
0 commit comments