{"library":"rollup-plugin-size-snapshot","title":"rollup-plugin-size-snapshot","description":"Rollup plugin that generates a .size-snapshot.json file tracking actual, minified, and gzipped bundle sizes. Current stable version v0.12.0 requires rollup >=2 and Node >=10. Key differentiator: also shows treeshaken sizes for es output via both Rollup and Webpack to detect dead code. Supports threshold for CI snapshot matching.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-size-snapshot"],"cli":null},"imports":["import { sizeSnapshot } from 'rollup-plugin-size-snapshot'","const { sizeSnapshot } = require('rollup-plugin-size-snapshot')","import type { RollupOptions } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { sizeSnapshot } from 'rollup-plugin-size-snapshot';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'es'\n  },\n  plugins: [\n    sizeSnapshot({\n      snapshotPath: '.size-snapshot.json',\n      printInfo: true\n    })\n  ]\n};","lang":"javascript","description":"This code shows the basic usage of the plugin with a Rollup config, outputting an ES bundle and generating a snapshot file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}