sizebot: Fix wrong order of base, head arguments (#20751)
The base and head arguments were flipped, so an n% decrease in bundle size was instead reported as an n% increase.
Andrew Clark committed
Feb 5, 2021 at 17:45 UTC
903384ab0ccd57efd56225dbc82ba6ad56021380
1 file changed
+1
-1
dangerfile.js
+1
-1
@@ -92,7 +92,7 @@ function getBundleSizes(pathToSizesDir) {
92
async function printResultsForChannel(baseResults, headResults) {
93
// Take the JSON of the build response and
94
// make an array comparing the results for printing
95
- const results = generateResultsArray(baseResults, headResults);
95
+ const results = generateResultsArray(headResults, baseResults);
96
97
const packagesToShow = results
98
.filter(