Show info about files/packages included with your rollup bundle
94
{
"context": "This criteria evaluates how well the engineer implements dual-level percentage calculation functionality for bundle size analysis, mirroring the approach used in rollup-plugin-sizes where percentages are computed at both the package level (relative to total bundle) and file level (relative to parent package).",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package-level percentages",
"description": "Correctly calculates each package's percentage relative to total bundle size using formula (packageSize / totalSize) * 100, matching the package percentage logic in rollup-plugin-sizes",
"max_score": 35
},
{
"name": "File-level percentages",
"description": "Correctly calculates each file's percentage relative to its parent package using formula (fileSize / packageSize) * 100, matching the file percentage logic in rollup-plugin-sizes",
"max_score": 35
},
{
"name": "Decimal precision formatting",
"description": "All percentage values formatted to exactly 2 decimal places using toFixed(2) or parseFloat().toFixed(2), consistent with rollup-plugin-sizes formatting behavior",
"max_score": 20
},
{
"name": "Total aggregation",
"description": "Correctly calculates total bundle size by aggregating all package sizes",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-rollup-plugin-sizesdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10