<commit_before>/* eslint strict: 0 */
'use strict';

const webpack = require('webpack');
const baseConfig = require('./webpack.config.base');
const path = require('path');

const config = Object.create(baseConfig);

config.debug = true;

config.devtool = 'inline-source-map';

config.entry = [
  'webpack-hot-middleware/client?path=http://localhost:3000/__webpack_hmr',
  './app/index'
];

config.output.publicPath = 'http://localhost:3000/dist/';

config.module.loaders.push({
  test: /\.js$/,
  loader: 'babel',
  include: path.join(__dirname, 'app'),
  query: {
    "stage": 0,
    "plugins": ["react-transform", "jsx-control-statements/babel"],
    "extra": {
        "react-transform": {
            "transforms": [{
                "transform": "react-transform-hmr",
                "imports": ["react"],
                "locals": ["module"]
            }, {
                "transform": "react-transform-catch-errors",
                "imports": ["react", "redbox-react"]
            }]
        }
    }
  }
});

config.plugins.push(
  new webpack.HotModuleReplacementPlugin(),<commit_msg>fix - getting strange erros regarding react-transform-catch-errors<commit_after>/* eslint strict: 0 */
'use strict';

const webpack = require('webpack');
const baseConfig = require('./webpack.config.base');
const path = require('path');

const config = Object.create(baseConfig);

config.debug = true;

config.devtool = 'inline-source-map';

config.entry = [
  'webpack-hot-middleware/client?path=http://localhost:3000/__webpack_hmr',
  './app/index'
];

config.output.publicPath = 'http://localhost:3000/dist/';

config.module.loaders.push({
  test: /\.js$/,
  loader: 'babel',
  include: path.join(__dirname, 'app'),
  query: {
    "stage": 0,
    "plugins": ["react-transform", "jsx-control-statements/babel"],
    "extra": {
        "react-transform": {
            "transforms": [{
                "transform": "react-transform-hmr",
                "imports": ["react"],
                "locals": ["module"]
            }]
        }
    }
  }
});

config.plugins.push(
  new webpack.HotModuleReplacementPlugin(),
{'fraction_non_alphanumeric': 0.18306527909176915, 'fraction_numerical': 0.00946073793755913, 'mean_word_length': 2.803956834532374, 'pattern_counts': {'":': 18, '<': 3, '<?xml version=': 0, '>': 3, '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': '7224757', 'n_tokens_mistral': 689, 'n_tokens_neox': 656, 'n_words': 115}