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

{
  "context": "This evaluation assesses how well the engineer uses webpack-bundle-analyzer's logging configuration capability, specifically the logLevel option and its integration with the BundleAnalyzerPlugin or the start function. The focus is on proper configuration of log verbosity levels to control console output in different execution contexts.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses webpack-bundle-analyzer",
      "description": "Imports and uses webpack-bundle-analyzer package (either BundleAnalyzerPlugin class or start function)",
      "max_score": 15
    },
    {
      "name": "Configures logLevel option",
      "description": "Properly configures the logLevel option with the value from options.logLevel, passing it to the analyzer (supports 'info', 'warn', 'error', 'silent')",
      "max_score": 30
    },
    {
      "name": "Implements server mode",
      "description": "Correctly implements server mode analysis using appropriate webpack-bundle-analyzer API (e.g., start function or BundleAnalyzerPlugin with analyzerMode: 'server')",
      "max_score": 15
    },
    {
      "name": "Implements static mode",
      "description": "Correctly implements static mode report generation using appropriate webpack-bundle-analyzer API (e.g., analyzerMode: 'static' or generateReport function)",
      "max_score": 15
    },
    {
      "name": "Reads stats file",
      "description": "Properly reads the webpack stats file from the provided path (using fs.readFile or similar) and parses it as JSON before passing to the analyzer",
      "max_score": 10
    },
    {
      "name": "Returns report info",
      "description": "Returns an object containing appropriate information about where the report was generated (URL for server mode, file path for static mode)",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json