<commit_before>module.exports = {
    externals: {
        react: 'React',
        'react-dom': 'ReactDOM'
    },
    devtool: 'sourcemap',
    module: {
        loaders: [
            { test: /\.js$/, loader: 'babel-loader', exclude: /(node_modules)/ }
        ]
    }
};
<commit_msg>Fixed UMD output Expanded upon webpack externals config to differentiate between different output targets: * Import `react` and `react-dom` when using `require` * Import `React` and `ReactDOM` when using globals SEE: Dependency names wrong when using React MDL from script #298 SEE: ReactMDL.js bundle: "react" or "react-dom" instead of require('React') or require('ReactDOM') #267<commit_after>module.exports = {
    externals: {
        react: {
            root: 'React',
            commonjs2: 'react',
            commonjs: 'react',
            amd: 'react'
        },
        'react-dom': {
            root: 'ReactDOM',
            commonjs2: 'react-dom',
            commonjs: 'react-dom',
            amd: 'react-dom'
		}
    },
    devtool: 'sourcemap',
    module: {
        loaders: [
            { test: /\.js$/, loader: 'babel-loader', exclude: /(node_modules)/ }
        ]
    }
};

{'fraction_non_alphanumeric': 0.14213197969543148, 'fraction_numerical': 0.00676818950930626, 'mean_word_length': 2.088772845953003, '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': '2802064', 'n_tokens_mistral': 371, 'n_tokens_neox': 363, 'n_words': 96}