<commit_before>let webpack = require('webpack');
let yargs = require('yargs');

const jsLoader = 'babel?cacheDirectory';

module.exports = {
  devtool: "eval",

  module: {
    loaders: [
      { test: /\.js/, loader: jsLoader, exclude: [/node_modules/,/\/sigma.*\//] },
      { test: /\/sigma\/[^\/]*\.js/, loader: 'imports?this=>window' },  // locally built sigma lib
      { test: /\/sigma[^\/]*\/build.*\.js/, loader: 'imports?this=>window' }, // resources from sigma lib
    ]
  },

  plugins: []
}<commit_msg>fixed storybook config to allow devtools<commit_after>let webpack = require('webpack');
let yargs = require('yargs');

const jsLoader = 'babel?cacheDirectory';

module.exports = function(storybookBaseConfig, configType) {
  storybookBaseConfig.devtool = "eval";
  storybookBaseConfig.module.loaders.push(
      { test: /\.js/, loader: jsLoader, exclude: [/node_modules/,/\/sigma.*\//] },
      { test: /\/sigma\/[^\/]*\.js/, loader: 'imports?this=>window' },  // locally built sigma lib
      { test: /\/sigma[^\/]*\/build.*\.js/, loader: 'imports?this=>window' } // resources from sigma lib
  );
  return storybookBaseConfig;
}
{'fraction_non_alphanumeric': 0.20822397200349957, 'fraction_numerical': 0.0, 'mean_word_length': 3.3169811320754716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1179777', 'n_tokens_mistral': 388, 'n_tokens_neox': 372, 'n_words': 81}