function bundle(file, entry) {
	fs.existsSync('dist') || fs.mkdirSync('dist');

	/**
	 * @type {Export}
	 */
	let output = pkg.exports[entry];
	let input = fs.readFileSync(file, 'utf8');

	// copy for ESM file
	write(output.import.default, input);

	// transform ESM -> CJS exports
	write(output.default.default, input.replace('export function', 'function').replace(
		'export default clsx;',
		'module.exports = clsx;\n'
		+ 'module.exports.clsx = clsx;'
	));

	if (entry === '.') {
		// transform ESM -> UMD exports
		input = input.replace('export function', 'function').replace('export default clsx;', 'return clsx.clsx=clsx, clsx;');
		write(pkg.unpkg, '!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):global.clsx=factory()}(this,function(){' + input + '});');
	}
}
@param {string} file
@param {"." | "./lite"} entry