Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
Overall
score
98%
{
"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
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-webpack-bundle-analyzerevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10