<commit_before>import path from 'path';
import webpack from 'webpack';

const destDir = path.join(__dirname, 'admin', 'public', 'js');

let config = {
	entry: {
		admin: `${__dirname}/admin/client/App`,
		signin: `${__dirname}/admin/client/Signin`,
		explorer: `${__dirname}/fields/explorer`,
	},
	output: {
		filename: '[name].js',
		path: destDir,
		// NOTE: we're hardcoding /keystone in the bundle
		publicPath: '/keystone/js/',
		pathinfo: true,
	},
	module: {
		loaders: [
			{
				// Auto-chunk Fields for dynamic loading
				// We cannot chunk Filter due to .getDefaultValue()
				test: /fields\/.*(Field|Column)\.jsx?$/i,
				loader: 'react-proxy',
				exclude: [
					// The field decorator
					/fields\/types\/Field\.js/,
					// Fields using the Array mixin (doesn't like proxy)
					/Array/,
				],
			},<commit_msg>build: make work under Windows, part deux<commit_after>import path from 'path';
import webpack from 'webpack';

const destDir = path.join(__dirname, 'admin', 'public', 'js');

let config = {
	entry: {
		admin: `${__dirname}/admin/client/App`,
		signin: `${__dirname}/admin/client/Signin`,
		explorer: `${__dirname}/fields/explorer`,
	},
	output: {
		filename: '[name].js',
		path: destDir,
		// NOTE: we're hardcoding /keystone in the bundle
		publicPath: '/keystone/js/',
		pathinfo: true,
	},
	module: {
		loaders: [
			{
				// Auto-chunk Fields for dynamic loading
				// We cannot chunk Filter due to .getDefaultValue()
				test: /fields(\/|\\).*(Field|Column)\.jsx?$/i,
				loader: 'react-proxy',
				exclude: [
					// The field decorator
					path.join(__dirname, 'fields', 'types', 'Field.js'),
					// Fields using the Array mixin (doesn't like proxy)
					/Array/,
				],
			},
{'fraction_non_alphanumeric': 0.17345750873108265, 'fraction_numerical': 0.0, 'mean_word_length': 3.092857142857143, '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': '6683957', 'n_tokens_mistral': 683, 'n_tokens_neox': 575, 'n_words': 153}