How to use the @bundle-stats/utils.getModulesReport function in @bundle-stats/utils

To help you get started, we’ve selected a few @bundle-stats/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github relative-ci / bundle-stats / packages / ui / src / components / bundle-modules / bundle-modules.jsx View on Github external
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) && (