Skip to content

Commit

Permalink
feat(storybook): upgrade storybook to 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteen88 committed Oct 14, 2024
1 parent abf4d75 commit 362e4e0
Show file tree
Hide file tree
Showing 3 changed files with 7,173 additions and 12,387 deletions.
10 changes: 10 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ const getStories = () =>

const config: StorybookConfig = {
framework: "@storybook/react-webpack5",

stories: [
"./welcome-page/welcome.stories.js",
"../docs/*.mdx",
"../docs/*.stories.tsx",
...getStories(),
],

core: {
disableTelemetry: true,
},

addons: [
"@storybook/addon-a11y",
"@storybook/addon-actions",
Expand All @@ -41,8 +44,11 @@ const config: StorybookConfig = {
"@storybook/addon-toolbars",
"@storybook/addon-viewport",
"@storybook/addon-webpack5-compiler-swc",
"@chromatic-com/storybook",
],

staticDirs: ["../.assets", "../logo"],

webpackFinal: async (config) => ({
...config,
module: {
Expand All @@ -59,6 +65,7 @@ const config: StorybookConfig = {
],
},
}),

...(isChromatic && {
previewHead: (head) => `
${head}
Expand All @@ -69,10 +76,13 @@ const config: StorybookConfig = {
<meta name="robots" content="noindex">
`,
}),

typescript: {
check: false,
reactDocgen: "react-docgen-typescript",
},

docs: {},
};

export default config;
Loading

0 comments on commit 362e4e0

Please sign in to comment.