<commit_before>const path = require("path");

module.exports = storybookBaseConfig => {
  // Ensure Babel transpiles story source in adjacent packages
  const babelRule = storybookBaseConfig.module.rules[0];
  babelRule.include = [path.resolve(__dirname, "../../../../packages")];
  babelRule.use[0].options = {sourceType: "unambiguous", babelrc: false, presets: ['react-app']};
  console.log(babelRule);
  storybookBaseConfig.module.rules.push(
    // {
    //   test: /\.jsx?$/,
    //   include: path.resolve(__dirname, "../../../../packages"),
    //   exclude: /(node_modules|dist)/, // exclude any commonjs files
    //   loader: 'babel-loader',
    //   options: {
    //     sourceType: 'unambiguous',
    //     babelrc: false,
    //     presets: ['react-app']
    //   }
    // },
    {
      test: /\.(scss|css)$/,
      loaders: ["style-loader", "css-loader", "sass-loader"]
    },
    {
      test: /\.svg$/,
      issuer: /\.js$/,
      loaders: [
        {
          loader: "babel-loader"
        },
        {
          loader: "@svgr/webpack"
        }<commit_msg>chore: clean up storybook webpack config<commit_after>const path = require("path");

module.exports = storybookBaseConfig => {
  // Ensure Babel transpiles story source in adjacent packages
  const babelRule = storybookBaseConfig.module.rules[0];
  babelRule.include = [path.resolve(__dirname, "../../../../packages")];
  babelRule.use[0].options = {sourceType: "unambiguous", babelrc: false, presets: ["react-app"]};
  storybookBaseConfig.module.rules.push(
    {
      test: /\.(scss|css)$/,
      loaders: ["style-loader", "css-loader", "sass-loader"]
    },
    {
      test: /\.svg$/,
      issuer: /\.js$/,
      loaders: [
        {
          loader: "babel-loader"
        },
        {
          loader: "@svgr/webpack"
        }
{'fraction_non_alphanumeric': 0.1874656404617922, 'fraction_numerical': 0.0021990104452996153, 'mean_word_length': 2.2098765432098766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6610029', 'n_tokens_mistral': 597, 'n_tokens_neox': 584, 'n_words': 110}