File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/livechat/.storybook Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const config: StorybookConfig = {
3030 [ require . resolve ( '../src/lib/uiKit' ) ] : require . resolve ( './mocks/uiKit.ts' ) ,
3131 } ;
3232
33- const isRuleSetRule = ( rule : any ) : rule is RuleSetRule => typeof rule === 'object' && rule . test && rule . use ;
33+ const isRuleSetRule = ( rule : any ) : rule is RuleSetRule => typeof rule === 'object' ;
3434
3535 config . module . rules ??= [ ] ;
3636
@@ -54,6 +54,15 @@ const config: StorybookConfig = {
5454 }
5555 urlLoader . test = / \. ( w e b m | w a v | m 4 a | a a c | o g a ) ( \? .* ) ? $ / ;
5656
57+ config . module . rules . push ( {
58+ test : / \. m j s $ / ,
59+ include : / n o d e _ m o d u l e s / ,
60+ type : 'javascript/auto' ,
61+ use : {
62+ loader : require . resolve ( 'babel-loader' ) ,
63+ } ,
64+ } ) ;
65+
5766 config . module . rules . push ( {
5867 test : / \. s c s s $ / ,
5968 use : [
You can’t perform that action at this time.
0 commit comments