{"library":"rollup-plugin-filesize","title":"rollup-plugin-filesize","description":"A Rollup plugin that displays the size of output files in the CLI, including minified, gzipped, and Brotli sizes. Version 10.0.0 is the latest stable, requiring Node >=16 and Rollup >=4 (ESM-only). It offers customizable output formatting, a reporter API for custom handlers (e.g., badge generation), and experimental size comparisons against previous releases or builds. Differentiates from alternative size plugins with built-in Brotli support and theme-aware display.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-filesize"],"cli":null},"imports":["import filesize from 'rollup-plugin-filesize';","import { filesize } from 'rollup-plugin-filesize';","import type { Plugin } from 'rollup';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport filesize from 'rollup-plugin-filesize';\n\nasync function build() {\n  const bundle = await rollup({\n    input: 'src/index.js',\n    plugins: [\n      filesize({\n        showMinifiedSize: true,\n        showGzippedSize: true,\n        showBrotliSize: false,\n        theme: 'dark'\n      })\n    ]\n  });\n  await bundle.write({ file: 'dist/bundle.js', format: 'es' });\n}\n\nbuild().catch(err => console.error(err));","lang":"typescript","description":"Shows how to integrate the plugin into a Rollup build, displaying minified and gzipped sizes.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}