CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-rollup-plugin-sizes

Show info about files/packages included with your rollup bundle

94

1.09x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "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-sizes

tile.json