@kindly/react-chat 2.43.0 → 2.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,38 +33,9 @@ module.exports = {
33
33
  },
34
34
  /* Modify the default storybook webpack config to our needs */
35
35
  webpackFinal: (config) => {
36
- // Support SVG imports. Ref: https://github.com/storybookjs/storybook/issues/6188#issuecomment-940081810
37
- const fileLoaderRule = config.module.rules.find((rule) => !Array.isArray(rule.test) && rule.test.test('.svg'));
38
- fileLoaderRule.exclude = /\.svg$/;
39
36
  return {
40
37
  ...config,
41
- module: {
42
- ...config.module,
43
- rules: [
44
- ...config.module.rules,
45
- {
46
- test: /\.svg$/,
47
- use: [
48
- {
49
- loader: 'babel-loader',
50
- },
51
- {
52
- loader: 'react-svg-loader',
53
- options: {
54
- jsx: true,
55
- },
56
- },
57
- ],
58
- },
59
- ],
60
- },
61
- resolve: {
62
- ...config.resolve,
63
- alias: {
64
- ...config.resolve.alias,
65
- app: path.resolve(__dirname, '../src'),
66
- },
67
- },
38
+ resolve: { ...config.resolve, alias: { ...config.resolve.alias, app: path.resolve(__dirname, '../src') } },
68
39
  plugins: [
69
40
  ...config.plugins,
70
41
  new webpack.EnvironmentPlugin({