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

{
  "context": "This criteria evaluates how effectively the engineer uses the rollup-plugin-sizes package to implement bundle size analysis and reporting. The focus is on correct plugin integration, proper Rollup configuration, and utilizing the package's core bundle analysis capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin import",
      "description": "Correctly imports the rollup-plugin-sizes package (e.g., import sizes from 'rollup-plugin-sizes' or require('rollup-plugin-sizes'))",
      "max_score": 10
    },
    {
      "name": "Plugin initialization",
      "description": "Calls the sizes() function to initialize the plugin and includes it in the Rollup plugins array",
      "max_score": 15
    },
    {
      "name": "Rollup configuration structure",
      "description": "Creates a valid Rollup configuration object with required properties (input, output, plugins) that properly integrates the sizes plugin",
      "max_score": 20
    },
    {
      "name": "Plugin placement",
      "description": "Places the sizes plugin in the plugins array at an appropriate position where it can analyze the generated bundle",
      "max_score": 10
    },
    {
      "name": "Console output",
      "description": "The configuration produces console output showing package names, sizes, and percentages as reported by rollup-plugin-sizes",
      "max_score": 20
    },
    {
      "name": "Package categorization",
      "description": "The output correctly distinguishes between npm packages and app code as categorized by rollup-plugin-sizes",
      "max_score": 15
    },
    {
      "name": "Multiple dependencies",
      "description": "Successfully handles and reports on bundles containing multiple npm dependencies, with each dependency listed separately in the output",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json