(label, files)
| 90 | const evaluated = new Set([...startup, ...start]); |
| 91 | |
| 92 | const report = (label, files) => { |
| 93 | console.log(`\n${label}: ${mb(bytes(files))} (${files.size} chunks)`); |
| 94 | const own = [...files].filter((f) => !startup.has(f) || label === "startup"); |
| 95 | for (const f of own.sort((a, b) => graph.get(b).size - graph.get(a).size).slice(0, 12)) { |
| 96 | console.log(` ${(graph.get(f).size / 1024).toFixed(0).padStart(6)} KB ${name(f)}`); |
| 97 | } |
| 98 | }; |
| 99 | |
| 100 | report("startup", startup); |
| 101 | report("start", start); |
no test coverage detected