packages/chunkalyse/bin/chunkalyse.js
function getStats({_: [file]} = {}) {
	const route = resolve(process.cwd(), file);

	try {
		return require(route);
	} catch (error) {
		console.error(`The file "${route}" could not be properly parsed.`);
		process.exit(1);
	}
}
function getStats({_: [file]} = {}) {
	const route = resolve(process.cwd(), file);

	try {
		return require(route);
	} catch (error) {
		console.error(`The file "${route}" could not be properly parsed.`);
		process.exit(1);
	}
}
function getStats ( { _ : [ file ] } = { } ) { const route = resolve ( process . cwd ( ) , file ) ; try { return require ( route ) ; } catch ( error ) { console . error ( ` ${ route } ` ) ; process . exit ( 1 ) ; } }
Read stats json file
@param  {String[]} options._[file] stats file
@return {Object}
Read stats json file