{"library":"rollup-plugin-webpack-stats","title":"rollup-plugin-webpack-stats","description":"A Rollup/Vite/Rolldown plugin (v3.1.1, released April 2026) that generates a stats JSON file with a webpack-compatible structure, enabling use of webpack ecosystem tools like bundle-stats and analyze tools with non-webpack builds. It supports Rollup 3/4, Vite 5-8, and Rolldown 1.0 beta, ships TypeScript types, and offers options like custom filename, asset/module filtering, and transform callback. Unlike direct webpack stats generation, it converts Rollup's output format to the webpack stats schema, making it a bridge tool.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install rollup-plugin-webpack-stats"],"cli":null},"imports":["import webpackStatsPlugin from 'rollup-plugin-webpack-stats'","import webpackStatsPlugin from 'rollup-plugin-webpack-stats'","import type { WebpackStatsPluginOptions } from 'rollup-plugin-webpack-stats'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport webpackStatsPlugin from 'rollup-plugin-webpack-stats';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    // Must be last plugin\n    webpackStatsPlugin()\n  ]\n};\n\n// vite.config.js\nimport { defineConfig } from 'vite';\nimport webpackStatsPlugin from 'rollup-plugin-webpack-stats';\n\nexport default defineConfig(() => ({\n  plugins: [\n    webpackStatsPlugin()\n  ]\n}));","lang":"javascript","description":"Shows basic setup for Rollup and Vite config files. Plugin must be the last in the plugins array to capture final bundle stats.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}