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

{
  "context": "This criteria evaluates the engineer's ability to use rollup-plugin-sizes to analyze and report bundle composition by aggregating module sizes at the package level. The focus is on correctly using the plugin's core functionality to categorize modules, aggregate sizes, and produce formatted output reports.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin Factory Function",
      "description": "Uses the sizes() factory function exported from rollup-plugin-sizes to create the plugin instance, returning a Rollup plugin object with the correct structure",
      "max_score": 15
    },
    {
      "name": "Rollup Integration",
      "description": "Correctly integrates the sizes plugin into the Rollup configuration's plugins array so it executes during the build process",
      "max_score": 10
    },
    {
      "name": "Module Categorization",
      "description": "The plugin successfully categorizes modules into npm packages, app code, and Rollup helpers, leveraging the built-in categorization logic",
      "max_score": 20
    },
    {
      "name": "Size Aggregation",
      "description": "Correctly aggregates module sizes by package name, summing all files from the same package using module.originalLength measurements",
      "max_score": 20
    },
    {
      "name": "Console Output",
      "description": "Produces formatted console output showing package names with sizes and percentages, using the default report function or equivalent functionality",
      "max_score": 15
    },
    {
      "name": "Size Sorting",
      "description": "Output displays packages sorted by size in descending order (largest first) as provided by the plugin's default behavior",
      "max_score": 10
    },
    {
      "name": "Multi-Bundle Support",
      "description": "Correctly handles multiple entry points by producing separate size reports for each bundle when configured with array or object input formats",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json