function write(file, source) {
	let isModule = !source.startsWith('!function');
	let result = minify(source, {
		module: isModule,
		compress: true,
	});

	if (result.code) {
		fs.writeFileSync(file, result.code);
		let size = zlib.gzipSync(result.code).byteLength;
		console.log('~> "%s" (%d b)', file, size);
	} else {
		console.error('!! "%s" ::', file, result.error);
	}
}
@param {string} file
@param {string} source