Skip to content

Commit 362f70c

Browse files
authored
Merge pull request #20934 from emberjs/main
Merge main in to next
2 parents 9b48198 + e4293a2 commit 362f70c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bin/minify-assets.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ let packageData = {
6767
};
6868

6969
function totalMin(dataset) {
70-
return dataset.reduce((a, b) => a + b[1], 0);
70+
return dataset.reduce((a, b) => a + (b[1] || 0), 0);
7171
}
7272

7373
function totalGz(dataset) {
74-
return dataset.reduce((a, b) => a + b[2], 0);
74+
return dataset.reduce((a, b) => a + (b[2] || 0), 0);
7575
}
7676

7777
// function totalBr(dataset) {
78-
// return dataset.reduce((a, b) => a + b[3], 0);
78+
// return dataset.reduce((a, b) => a + (b[3] || 0), 0);
7979
// }
8080

8181
import { buildMacros } from '@embroider/macros/babel';
@@ -196,9 +196,9 @@ printTable([
196196
],
197197
...packageData.ember.map((x) => [
198198
x[0].replace('@ember/', ''),
199-
size(x[1]),
200-
size(x[2]),
201-
// size(x[3]),
199+
size(x[1] || 0),
200+
size(x[2] || 0),
201+
// size(x[3] || 0),
202202
]),
203203
]);
204204

@@ -212,8 +212,8 @@ printTable([
212212
],
213213
...packageData.glimmer.map((x) => [
214214
x[0].replace('@glimmer/', ''),
215-
size(x[1]),
216-
size(x[2]),
217-
// size(x[3]),
215+
size(x[1] || 0),
216+
size(x[2] || 0),
217+
// size(x[3] || 0),
218218
]),
219219
]);

0 commit comments

Comments
 (0)