Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
Overall
score
98%
{
"context": "This criteria evaluates how well the engineer utilizes webpack-bundle-analyzer's report customization capabilities, specifically the reportTitle, reportFilename, analyzerMode, and openAnalyzer configuration options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "BundleAnalyzerPlugin import",
"description": "Correctly imports BundleAnalyzerPlugin from 'webpack-bundle-analyzer' package",
"max_score": 10
},
{
"name": "Plugin instantiation",
"description": "Returns properly instantiated BundleAnalyzerPlugin objects using 'new BundleAnalyzerPlugin(options)' for each environment",
"max_score": 15
},
{
"name": "analyzerMode configuration",
"description": "Correctly uses analyzerMode: 'static' for production and staging environments, and analyzerMode: 'server' (or default) for development environment",
"max_score": 15
},
{
"name": "reportFilename usage",
"description": "Correctly sets reportFilename option to 'reports/production-bundle-report.html' for production and 'reports/staging-bundle-report.html' for staging",
"max_score": 15
},
{
"name": "String reportTitle",
"description": "Uses reportTitle as a string for production environment (e.g., 'Production Bundle Analysis - [date/time]') and development environment ('Dev Bundle Analysis')",
"max_score": 15
},
{
"name": "Function reportTitle",
"description": "Uses reportTitle as a function for staging environment that returns a dynamically generated string",
"max_score": 15
},
{
"name": "openAnalyzer control",
"description": "Sets openAnalyzer: false to disable automatic browser opening for all three environments",
"max_score": 10
},
{
"name": "Error handling",
"description": "Throws appropriate error for unsupported environments with descriptive message",
"max_score": 5
}
]
}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