Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 6f1cada

Browse files
committed
chore: migration for storybook from v7 to v8
1 parent 7ca1bae commit 6f1cada

File tree

4 files changed

+1210
-1972
lines changed

4 files changed

+1210
-1972
lines changed

.storybook/main.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ const toPath = (_path) => path.join(process.cwd(), _path);
33

44
module.exports = {
55
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
6-
addons: ["@storybook/addon-essentials", "@storybook/addon-mdx-gfm"],
6+
addons: [
7+
"@storybook/addon-essentials",
8+
"@storybook/addon-mdx-gfm",
9+
"@storybook/addon-webpack5-compiler-swc",
10+
"@chromatic-com/storybook"
11+
],
712

813
framework: {
914
name: "@storybook/react-webpack5",
1015
options: {
11-
builder: {
12-
useSWC: true, // This flag is automatically set by Storybook for all new Webpack5 projects (except Angular) in Storybook 7.6
13-
},
16+
builder: {},
1417
},
1518
},
1619

@@ -39,7 +42,5 @@ module.exports = {
3942
},
4043
};
4144
},
42-
docs: {
43-
autodocs: true,
44-
},
45+
docs: {},
4546
};

.storybook/preview.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ export const parameters = {
66
date: /Date$/,
77
},
88
},
9-
}
9+
}
10+
export const tags = ["autodocs"];

0 commit comments

Comments
 (0)