File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "sourceType" : " unambiguous" ,
3
+ "presets" : [
4
+ [
5
+ " @babel/preset-env" ,
6
+ {
7
+ "targets" : {
8
+ "chrome" : 100 ,
9
+ "safari" : 15 ,
10
+ "firefox" : 91
11
+ }
12
+ }
13
+ ],
14
+ " @babel/preset-typescript" ,
15
+ " @babel/preset-react"
16
+ ],
17
+ "plugins" : []
18
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " react-app"
2
+ "extends" : [
3
+ " react-app" ,
4
+ " plugin:storybook/recommended"
5
+ ]
3
6
}
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
stories : [ "../src/**/*.stories.mdx" , "../src/**/*.stories.@(js|jsx|ts|tsx)" ] ,
3
+
3
4
addons : [
4
5
"@storybook/addon-links" ,
5
6
"@storybook/addon-essentials" ,
6
7
"@storybook/addon-interactions" ,
7
8
] ,
8
- framework : "@storybook/react" ,
9
- core : {
10
- builder : "@storybook/builder-webpack5" ,
9
+
10
+ framework : {
11
+ name : "@storybook/react-webpack5" ,
12
+ options : { }
11
13
} ,
14
+
12
15
webpackFinal : async ( config ) => {
13
16
config . module . rules . push ( {
14
17
test : / \. ( t x t | c s v | e p s | m m d b ) $ / ,
@@ -25,4 +28,8 @@ module.exports = {
25
28
26
29
return config ;
27
30
} ,
31
+
32
+ docs : {
33
+ autodocs : true
34
+ }
28
35
} ;
You can’t perform that action at this time.
0 commit comments