{"library":"rollup-plugin-filesize-check","title":"rollup-plugin-filesize-check","description":"A tiny Rollup plugin that validates that the output bundle size is within an expected range. Currently at version 1.2.0, it offers a simple API: provide an expected size (in kB) and a tolerance (warn) in kB. The plugin warns or errors if the actual size deviates beyond the tolerance. Unlike more feature-rich alternatives like rollup-plugin-filesize or rollup-plugin-sizes, this package focuses purely on size checking with minimal configuration and no visual reporting. It has stable, low release cadence, and is intended for developers who want CI-style size enforcement in their Rollup builds.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-filesize-check"],"cli":null},"imports":["import sizeCheck from 'rollup-plugin-filesize-check'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// install: npm i rollup-plugin-filesize-check --save-dev\n\nimport sizeCheck from 'rollup-plugin-filesize-check';\n\nexport default {\n  input: 'src/index.js',\n  output: [{ file: 'builds/out.js', format: 'umd' }],\n  plugins: [\n    sizeCheck({\n      expect: 95, // expected size in kB\n      warn: 5     // acceptable deviation in kB\n    })\n  ]\n};","lang":"javascript","description":"Rollup config using sizeCheck plugin to validate bundle size within +/-5 kB of 95 kB.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}