Skip to content

Commit 5a8f34a

Browse files
committed
build: push storybook vite plugins
1 parent ed1bf99 commit 5a8f34a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.storybook/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { StorybookConfig } from '@storybook/web-components-vite';
22
import remarkGfm from 'remark-gfm';
3+
import viteTsconfigPaths from 'vite-tsconfig-paths';
34

45
const config: StorybookConfig = {
56
stories: [
@@ -36,5 +37,11 @@ const config: StorybookConfig = {
3637
docs: {
3738
autodocs: true,
3839
},
40+
41+
viteFinal: async config => {
42+
config.plugins = config.plugins || [];
43+
config.plugins.push(viteTsconfigPaths());
44+
return config;
45+
},
3946
};
4047
export default config;

0 commit comments

Comments
 (0)