<commit_before>import path from 'path';
import nodeExternals from 'webpack-node-externals';

const client = {
    entry: {
        js: './src/app-client.js',
    },
    output: {
        path: path.join(__dirname, 'src', 'static', 'js'),
        filename: 'bundle.js',
    },
    module: {
        rules: [
            {
                test: path.join(__dirname, 'src'),
                use: {
                    loader: 'babel-loader',
                    options: 'cacheDirectory=.babel_cache',
                },
            },
            {
                test: /.(png|jpg)$/,
                loader: 'url-loader?limit=8192',
            },
        ],
    },
};

const server = {
    target: 'node',
    node: {
        __dirname: false,
    },
    externals: [
        nodeExternals({
            modulesFromFile: true,
        }),
    ],
    entry: {
        js: './src/server.js',
    },
    output: {
        path: path.join(__dirname, 'src'),
        filename: 'server-es5.js',
        libraryTarget: 'commonjs2',
    },
    module: {
        rules: [
            {
                test: path.join(__dirname, 'src'),
                use: {
                    loader: 'babel-loader',
                    options: 'cacheDirectory=.babel_cache',
                },
            },
        ],
    },
};

export default [client, server];<commit_msg>modified webpack for babel_cache<commit_after>import path from 'path';
import nodeExternals from 'webpack-node-externals';

const client = {
    entry: {
        js: './src/app-client.js',
    },
    output: {
        path: path.join(__dirname, 'src', 'static', 'js'),
        filename: 'bundle.js',
    },
    module: {
        rules: [
            {
                test: path.join(__dirname, 'src'),
                use: {
                    loader: 'babel-loader',
                    options: 'cacheDirectory=node_modules/.cache/babel-loader',
                },
            },
            {
                test: /.(png|jpg)$/,
                loader: 'url-loader?limit=8192',
            },
        ],
    },
};

const server = {
    target: 'node',
    node: {
        __dirname: false,
    },
    externals: [
        nodeExternals({
            modulesFromFile: true,
        }),
    ],
    entry: {
        js: './src/server.js',
    },
    output: {
        path: path.join(__dirname, 'src'),
        filename: 'server-es5.js',
        libraryTarget: 'commonjs2',
    },
    module: {
        rules: [
            {
                test: path.join(__dirname, 'src'),
                use: {
                    loader: 'babel-loader',
                    options: 'cacheDirectory=node_modules/.cache/babel-loader',
                },
            },
        ],
    },
};

export default [client, server];
{'fraction_non_alphanumeric': 0.147239263803681, 'fraction_numerical': 0.004330566582461205, 'mean_word_length': 1.2610114192495923, 'pattern_counts': {'":': 0, '<': 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': '5489860', 'n_tokens_mistral': 822, 'n_tokens_neox': 781, 'n_words': 144}