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

{
  "context": "This evaluation assesses how well the engineer uses webpack-bundle-analyzer's BundleAnalyzerPlugin to create a configurable bundle analysis solution. The criteria focus on proper plugin instantiation, correct configuration of analyzer modes, and appropriate use of the plugin's configuration options.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "BundleAnalyzerPlugin Import",
      "description": "Correctly imports BundleAnalyzerPlugin from the webpack-bundle-analyzer package",
      "max_score": 10
    },
    {
      "name": "Plugin Instantiation",
      "description": "Creates a new instance of BundleAnalyzerPlugin with a configuration object",
      "max_score": 15
    },
    {
      "name": "analyzerMode Configuration",
      "description": "Correctly sets the analyzerMode option to 'server', 'static', or 'json' based on the input config.mode parameter",
      "max_score": 25
    },
    {
      "name": "analyzerPort Configuration",
      "description": "Correctly sets the analyzerPort option for server mode using the config.port parameter, with proper default value of 8888",
      "max_score": 15
    },
    {
      "name": "openAnalyzer Configuration",
      "description": "Correctly sets the openAnalyzer option using the config.autoOpen parameter, with proper default value of true",
      "max_score": 15
    },
    {
      "name": "reportFilename Configuration",
      "description": "Correctly sets the reportFilename option for static and json modes using the config.outputPath parameter",
      "max_score": 15
    },
    {
      "name": "Return Value",
      "description": "Returns an array containing the configured BundleAnalyzerPlugin instance as expected by webpack's plugins configuration",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json