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

98

1.18x
Quality

Pending

Does it follow best practices?

Impact

98%

1.18x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how effectively the engineer uses webpack-bundle-analyzer's bundle parsing APIs to read webpack stats files, extract module information, calculate sizes, and generate structured output. The focus is on proper utilization of the package's stats reading and data processing capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Stats file reading",
      "description": "Uses webpack-bundle-analyzer's readStatsFromFile function from the analyzer module to read the stats JSON file, rather than manually reading and parsing JSON",
      "max_score": 25
    },
    {
      "name": "Viewer data extraction",
      "description": "Uses getViewerData function from the analyzer module to process the stats and extract structured bundle information including modules, chunks, and sizes",
      "max_score": 30
    },
    {
      "name": "Module data processing",
      "description": "Correctly extracts module information from the parsed viewer data structure, accessing module names and sizes from the hierarchical tree structure returned by getViewerData",
      "max_score": 20
    },
    {
      "name": "Size metrics handling",
      "description": "Properly accesses size metrics (stat, parsed, gzip, or brotli) from the module data, handling cases where certain size types may not be available",
      "max_score": 15
    },
    {
      "name": "Output generation",
      "description": "Generates the required JSON output structure with totalModules, totalBundleSize, chunkNames, and largestModules fields as specified, correctly sorting and limiting the largest modules to top 10",
      "max_score": 10
    }
  ]
}

tile.json