CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

Overall
score

98%

Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses webpack-bundle-analyzer's statsOptions configuration to control stats file generation. It focuses specifically on correct usage of the BundleAnalyzerPlugin constructor, statsOptions parameter, and generateStatsFile option.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "BundleAnalyzerPlugin import",
      "description": "Correctly imports BundleAnalyzerPlugin from webpack-bundle-analyzer package using require() or import statement",
      "max_score": 10
    },
    {
      "name": "Plugin instantiation",
      "description": "Creates a new BundleAnalyzerPlugin instance using the 'new' operator with a configuration object",
      "max_score": 15
    },
    {
      "name": "generateStatsFile option",
      "description": "Sets the generateStatsFile option to true to enable stats file generation",
      "max_score": 15
    },
    {
      "name": "statsFilename option",
      "description": "Configures the statsFilename option to specify the output filename for the stats file",
      "max_score": 10
    },
    {
      "name": "statsOptions object",
      "description": "Provides a statsOptions object to the plugin configuration containing custom webpack stats settings",
      "max_score": 20
    },
    {
      "name": "Source code control",
      "description": "Uses the 'source' property in statsOptions to control whether module source code is included (source: false to exclude, source: true or omitted to include)",
      "max_score": 10
    },
    {
      "name": "Reasons configuration",
      "description": "Uses the 'reasons' property in statsOptions to control whether module dependency reasons are included",
      "max_score": 10
    },
    {
      "name": "Multiple stats options",
      "description": "Correctly configures multiple statsOptions properties simultaneously (e.g., chunks, modules, assets) to customize stats output",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-webpack-bundle-analyzer

tile.json