{"library":"rollup-plugin-bundle-analyzer","title":"rollup-plugin-bundle-analyzer","description":"A Rollup plugin that visualizes the size of output files as an interactive zoomable treemap. Version 1.6.6 supports Rollup ^1.20.0 || ^2.0.0 || ^3.0.0, requires Node >=14.0.0, and ships TypeScript types. It provides multiple analyzer modes (server, static, json) and can display input, rendered (minified), and gzipped sizes. Unlike webpack-bundle-analyzer, this plugin is specifically for Rollup/Vite projects and parses minified bundles to show real module sizes. It supports excluding assets via patterns.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-bundle-analyzer"],"cli":null},"imports":["import bundleAnalyzer from 'rollup-plugin-bundle-analyzer'","import bundleAnalyzer from 'rollup-plugin-bundle-analyzer'","import type { Options } from 'rollup-plugin-bundle-analyzer'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport bundleAnalyzer from 'rollup-plugin-bundle-analyzer';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    bundleAnalyzer({\n      analyzerMode: 'static',\n      reportFilename: 'bundle-report.html',\n      generateStatsFile: true,\n      statsFilename: 'stats.json',\n      excludeAssets: '*.map'\n    })\n  ]\n};","lang":"typescript","description":"Configures rollup to generate a static HTML report and a stats JSON file, excluding source maps.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}