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

{
  "context": "This criteria evaluates how well the engineer uses rollup-plugin-sizes package capabilities to implement a Rollup plugin, specifically focusing on proper plugin structure, hook implementation, and bundle analysis.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin factory function",
      "description": "Exports a factory function that returns a valid Rollup plugin object (not just an object literal)",
      "max_score": 10
    },
    {
      "name": "Plugin name property",
      "description": "The returned plugin object includes a 'name' property with a string value identifying the plugin",
      "max_score": 10
    },
    {
      "name": "Options hook implementation",
      "description": "Implements the 'options' hook to capture and process the input configuration (entry points)",
      "max_score": 25
    },
    {
      "name": "GenerateBundle hook implementation",
      "description": "Implements the 'generateBundle' hook to analyze bundle data after compilation",
      "max_score": 25
    },
    {
      "name": "Module size extraction",
      "description": "Accesses module.originalLength or equivalent property to retrieve original source sizes from bundle modules",
      "max_score": 15
    },
    {
      "name": "Multi-bundle support",
      "description": "Correctly handles multiple input configurations (array or object format) and processes each bundle independently",
      "max_score": 10
    },
    {
      "name": "Non-blocking execution",
      "description": "Plugin hooks return appropriately (options returns modified options, generateBundle returns void/undefined) without blocking the build pipeline",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json