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

{
  "context": "This criteria evaluates how well the engineer uses webpack-bundle-analyzer to configure asset filtering and analyzer output options. The focus is on proper usage of the BundleAnalyzerPlugin class and its configuration options.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin instantiation",
      "description": "Uses BundleAnalyzerPlugin from webpack-bundle-analyzer package correctly in the webpack configuration's plugins array",
      "max_score": 15
    },
    {
      "name": "excludeAssets option",
      "description": "Configures the excludeAssets option with an array of patterns to filter assets",
      "max_score": 25
    },
    {
      "name": "Vendor exclusion pattern",
      "description": "Includes a pattern (string or RegExp) in excludeAssets that matches files containing 'vendor'",
      "max_score": 15
    },
    {
      "name": "Legacy file pattern",
      "description": "Includes a RegExp pattern in excludeAssets that matches *.legacy.js files (e.g., /\\.legacy\\.js$/)",
      "max_score": 15
    },
    {
      "name": "Polyfills pattern",
      "description": "Includes a pattern in excludeAssets that matches files like 'polyfills.*.js' (e.g., /polyfills\\..*\\.js/)",
      "max_score": 15
    },
    {
      "name": "Static mode configuration",
      "description": "Sets analyzerMode option to 'static' to generate HTML report file",
      "max_score": 5
    },
    {
      "name": "Report filename",
      "description": "Sets reportFilename option to 'dist/bundle-report.html' or 'bundle-report.html' with appropriate output path",
      "max_score": 5
    },
    {
      "name": "Default sizes metric",
      "description": "Sets defaultSizes option to 'parsed' to show parsed sizes by default",
      "max_score": 2
    },
    {
      "name": "Browser opening control",
      "description": "Sets openAnalyzer option to false to prevent automatic browser opening",
      "max_score": 2
    },
    {
      "name": "Log level configuration",
      "description": "Sets logLevel option to 'warn' to reduce console output",
      "max_score": 1
    }
  ]
}

Install with Tessl CLI

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

tile.json