<commit_before>import cjs from "rollup-plugin-cjs-es";
import resolve from "rollup-plugin-node-resolve";
import {terser} from "rollup-plugin-terser";

import pkg from "./package.json";

const banner = `/**
 * Javascript-number-formatter
 * Lightweight & Fast JavaScript Number Formatter
 *
 * @preserve IntegraXor Web SCADA - JavaScript Number Formatter (http://www.integraxor.com/)
 * @author KPL
 * @maintainer <NAME>
 * @copyright ${new Date().getFullYear()} ecava
 * @license MIT
 * @link http://mottie.github.com/javascript-number-formatter/
 * @version ${pkg.version}
 */`;

export default [{
	input: "src/format.js",
	output: [{
		file: "lib/format.js",
		name: "format",
		format: "iife",
		sourceMap: false,
		banner,
	},{
		file: "lib/format.esm.js",
		name: "format",
		format: "esm",
		sourceMap: false,
		banner,
	}],
	plugins: [
		resolve(),
		cjs({nested: true})
	]
}, {
	input: "src/format.js",
	output: {
		file: "lib/format.min.js",
		name: "format",
		format: "iife",
		sourceMap: false,
		banner,
	},
	plugins: [
		resolve(),
		cjs({nested: true}),
		terser({
			compress: {
				passes: 3
			}
		})
	]
}];
<commit_msg>Build: Switch from IIFE to UMD output<commit_after>import cjs from "rollup-plugin-cjs-es";
import resolve from "rollup-plugin-node-resolve";
import {terser} from "rollup-plugin-terser";

import pkg from "./package.json";

const banner = `/**
 * Javascript-number-formatter
 * Lightweight & Fast JavaScript Number Formatter
 *
 * @preserve IntegraXor Web SCADA - JavaScript Number Formatter (http://www.integraxor.com/)
 * @author KPL
 * @maintainer <NAME>
 * @copyright ${new Date().getFullYear()} ecava
 * @license MIT
 * @link http://mottie.github.com/javascript-number-formatter/
 * @version ${pkg.version}
 */`;

export default [{
	input: "src/format.js",
	output: [{
		file: "lib/format.js",
		name: "format",
		format: "umd",
		sourceMap: false,
		banner,
	},{
		file: "lib/format.esm.js",
		name: "format",
		format: "esm",
		sourceMap: false,
		banner,
	}],
	plugins: [
		resolve(),
		cjs({nested: true})
	]
}, {
	input: "src/format.js",
	output: {
		file: "lib/format.min.js",
		name: "format",
		format: "umd",
		sourceMap: false,
		banner,
	},
	plugins: [
		resolve(),
		cjs({nested: true}),
		terser({
			compress: {
				passes: 3
			}
		})
	]
}];

{'fraction_non_alphanumeric': 0.17972149695387293, 'fraction_numerical': 0.0008703220191470844, 'mean_word_length': 3.6444444444444444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1599462', 'n_tokens_mistral': 928, 'n_tokens_neox': 849, 'n_words': 192}