-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
43 lines (42 loc) · 1.03 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin";
import type {StorybookConfig} from "@storybook/nextjs";
const config: StorybookConfig = {
framework: {
name: "@storybook/nextjs",
options: {
builder: {
useSWC: true,
},
},
},
features: {
experimentalRSC: true,
},
typescript: {
reactDocgen: 'react-docgen',
check: false,
},
stories: [
"./stories/**/*.mdx",
"./stories/**/*.stories.@(js|jsx|ts|tsx)"
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"storybook-addon-module-mock",
{
name: '@storybook/addon-styling-webpack',
options: {
// Check out https://github.com/storybookjs/addon-styling/blob/main/docs/api.md
// For more details on this addon's options.
postCss: true,
},
},
],
webpackFinal: async (config) => {
if (config.resolve) config.resolve.plugins = [new TsconfigPathsPlugin()];
return config
},
};
export default config;