Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function analyzeBundle() {
console.log( 'Analyze: reading stats.json file' );
const stats = readStatsFromFile( 'stats.json' );
console.log( 'Analyze: analyzing' );
const chart = getViewerData( stats, './public/evergreen' );
console.log( 'Analyze: writing chart.json file' );
writeFileSync( 'chart.json', JSON.stringify( chart, null, 2 ) );
console.log( 'Analyze: analyzing the style.css file' );
analyzeStylesheet( './public/style.css', 'style.json' );
console.log( 'Analyze: finished' );
}