text: module.exports = ({ config }) => {
    config.module.rules.push({
      test: /\.(ts|tsx)$/,
      use: [
        {
          loader: require.resolve('awesome-typescript-loader'),
        },
      ],
    });
    config.module.rules.push({
      test: /\.stories\.ts?$/,
      use: [
        {
          loader: require.resolve('awesome-typescript-loader'),
        },
      ],
      enforce: 'pre',
    });
    config.resolve.extensions.push('.ts', '.tsx');
    return config;
  };
  