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-2/

{
  "context": "This evaluation criteria assesses how well the engineer uses module-details-from-path and Rollup's module metadata to correctly categorize bundle modules into npm packages, application code, and Rollup helpers. The focus is on proper use of package detection APIs and Rollup's generateBundle hook.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Rollup helper detection",
      "description": "Correctly identifies Rollup helper modules by checking for null byte (\\u0000) prefix in module IDs",
      "max_score": 20
    },
    {
      "name": "module-details-from-path usage",
      "description": "Uses module-details-from-path library to parse module paths and extract npm package information from node_modules paths",
      "max_score": 25
    },
    {
      "name": "generateBundle hook",
      "description": "Implements Rollup's generateBundle hook to access bundle and module information after bundle generation",
      "max_score": 15
    },
    {
      "name": "Module iteration",
      "description": "Correctly iterates through bundle chunks and their modules property to access individual module data",
      "max_score": 15
    },
    {
      "name": "Category logic",
      "description": "Implements three-way categorization logic: Rollup helpers (null byte prefix), npm packages (parsed from module-details-from-path), and app code (fallback)",
      "max_score": 15
    },
    {
      "name": "Size aggregation",
      "description": "Uses module.originalLength property to calculate total sizes for each category by summing individual module sizes",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-rollup-plugin-sizes

tile.json