File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
2
2
const config = {
3
- stories : [ '../client/**/*.stories.(jsx|mdx )' ] ,
3
+ stories : [ '../client/**/*.stories.(jsx|md|tsx )' ] ,
4
4
addons : [
5
5
'@storybook/addon-links' ,
6
6
'@storybook/addon-essentials' ,
@@ -18,19 +18,19 @@ const config = {
18
18
// https://storybook.js.org/docs/react/builders/webpack
19
19
// this modifies the existing image rule to exclude .svg files
20
20
// since we want to handle those files with @svgr /webpack
21
- const imageRule = config . module . rules . find ( rule => rule . test . test ( '.svg' ) )
22
- imageRule . exclude = / \. s v g $ /
21
+ const imageRule = config . module . rules . find ( ( rule ) =>
22
+ rule . test . test ( '.svg' )
23
+ ) ;
24
+ imageRule . exclude = / \. s v g $ / ;
23
25
24
26
// configure .svg files to be loaded with @svgr /webpack
25
27
config . module . rules . push ( {
26
28
test : / \. s v g $ / ,
27
29
use : [ '@svgr/webpack' ]
28
- } )
30
+ } ) ;
29
31
30
- return config
31
- } ,
32
+ return config ;
33
+ }
32
34
} ;
33
35
34
36
export default config ;
35
-
36
-
You can’t perform that action at this time.
0 commit comments