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

{
  "context": "This evaluation assesses the engineer's ability to use rollup-plugin-sizes to analyze bundle sizes across multiple entry point configurations. The focus is on correctly integrating the plugin with different Rollup input formats and ensuring proper bundle analysis for each configuration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin Import",
      "description": "The rollup-plugin-sizes package is correctly imported into rollup.config.js using either require() or ES6 import syntax",
      "max_score": 10
    },
    {
      "name": "Array Input Config",
      "description": "A configuration object exists with input property set to an array of entry points (e.g., input: ['src/main.js', 'src/worker.js']) and includes the sizes plugin in the plugins array",
      "max_score": 20
    },
    {
      "name": "Object Input Config",
      "description": "A configuration object exists with input property set to an object with named entry points (e.g., input: { main: 'src/main.js', admin: 'src/admin.js' }) and includes the sizes plugin in the plugins array",
      "max_score": 20
    },
    {
      "name": "Single Input Config",
      "description": "A configuration object exists with input property set to a single string entry point (e.g., input: 'src/main.js') and includes the sizes plugin in the plugins array",
      "max_score": 15
    },
    {
      "name": "Plugin Invocation",
      "description": "The sizes plugin is properly invoked as a function (sizes()) within the plugins array of each configuration, not just referenced",
      "max_score": 15
    },
    {
      "name": "Config Export",
      "description": "The rollup.config.js file exports an array containing all three configuration objects, allowing Rollup to process them as separate builds",
      "max_score": 10
    },
    {
      "name": "Source Files",
      "description": "Entry point files (main.js, admin.js, worker.js) exist in the src/ directory and each imports and uses at least one function from lodash",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json