scripts/bundleSize/sortByBundlesTotalAscending.js

Summary

Maintainability
A
0 mins
Test Coverage
export default bundlesData =>
  bundlesData.sort((a, b) => {
    const total1 = a.totalSize;
    const total2 = b.totalSize;

    return total1 - total2;
  });