Skip to content

Commit

Permalink
chore: Revive Livechat Storybook (#33137)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored Aug 23, 2024
1 parent c2609d7 commit eaf9c8d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/livechat/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config: StorybookConfig = {
[require.resolve('../src/lib/uiKit')]: require.resolve('./mocks/uiKit.ts'),
};

const isRuleSetRule = (rule: any): rule is RuleSetRule => typeof rule === 'object' && rule.test && rule.use;
const isRuleSetRule = (rule: any): rule is RuleSetRule => typeof rule === 'object';

config.module.rules ??= [];

Expand All @@ -54,6 +54,15 @@ const config: StorybookConfig = {
}
urlLoader.test = /\.(webm|wav|m4a|aac|oga)(\?.*)?$/;

config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
use: {
loader: require.resolve('babel-loader'),
},
});

config.module.rules.push({
test: /\.scss$/,
use: [
Expand Down

0 comments on commit eaf9c8d

Please sign in to comment.