<commit_before>var path = require("path");
var envify = require("envify/custom");
var babelify = require("babelify");
var browserify = require("browserify");
var bundleCollapser = require("bundle-collapser/plugin");

module.exports = function(zeker, build_name, is_prod){
	var b = browserify({
		entries: [path.join(".", zeker.js[build_name])]
	});
	b.transform(envify({
		ZEKER_BUILD_NAME: build_name,
		NODE_ENV: is_prod ? "production" : "development"
	}));
	b.transform(babelify.configure({
		whitelist: [
			//For the list of whats available and what these do go here:
			//https://babeljs.io/docs/advanced/transformers/

			//browser compatability/bug avoidance
			"strict",
			"es3.propertyLiterals",
			"es3.propertyLiterals",
			"spec.undefinedToVoid",
			"validation.undeclaredVariableCheck",

			//the good parts of es6
			"es6.blockScoping",
			"es6.destructuring",
			"es6.parameters",
			"es6.spread",
			"es6.properties.shorthand"
		]
	}));
	if(is_prod){
		b.plugin(bundleCollapser);
	}
	return b;<commit_msg>fixing mkBrowserify<commit_after>var path = require("path");
var envify = require("envify/custom");
var babelify = require("babelify");
var browserify = require("browserify");
var bundleCollapser = require("bundle-collapser/plugin");

module.exports = function(zeker, build_name, is_prod){
	var b = browserify({
		entries: [path.join(".", zeker.js[build_name])],
		debug: true
	});
	b.transform(envify({
		ZEKER_BUILD_NAME: build_name,
		NODE_ENV: is_prod ? "production" : "development"
	}));
	b.transform(babelify.configure({
		whitelist: [
			//For the list of whats available and what these do go here:
			//https://babeljs.io/docs/advanced/transformers/

			//browser compatability/bug avoidance
			"strict",
			"es3.propertyLiterals",
			"es3.propertyLiterals",
			"spec.undefinedToVoid",

			//the good parts of es6
			"es6.blockScoping",
			"es6.destructuring",
			"es6.parameters",
			"es6.spread",
			"es6.properties.shorthand"
		]
	}));
	if(is_prod){
		b.plugin(bundleCollapser);
	}
	return b;
{'fraction_non_alphanumeric': 0.1539980256663376, 'fraction_numerical': 0.007897334649555774, 'mean_word_length': 4.434316353887399, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5237868', 'n_tokens_mistral': 802, 'n_tokens_neox': 707, 'n_words': 139}