Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
stories.add('multiple jobs', () => (
));
export const BundleModules = ({ jobs }) => {
const runs = jobs.map((job) => ({
meta: job,
...modulesWebpackTransform(get(job, 'rawData.webpack.stats')),
}));
const modulesReport = getModulesReport(runs);
return (
<>
{!isEmpty(modulesReport) && modulesReport.map(({ chunkId, chunkNames, modules }) => (
))}
{isEmpty(modulesReport) && (
stories.add('empty baseline', () => (
));
stories.add('default', () => (
));