aboutsummaryrefslogtreecommitdiffstats
path: root/.storybook/webpack.config.js
blob: 27e132babaca9e7cefddcd2c05778f4f45950508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path');

module.exports = baseConfig => {
  baseConfig.module.rules.push({
    test: [/\.stories\.ts?$/, /index\.ts$/],
    loaders: [
      {
        loader: require.resolve('@storybook/addon-storysource/loader'),
        options: {
          parser: 'typescript',
        },
      },
    ],
    include: [path.resolve(__dirname, '../stories/angular')],
    enforce: 'pre',
  });

  return baseConfig;
};