{"id":16940030,"url":"https://github.com/spencermountain/rollup-plugin-filesize-check","last_synced_at":"2026-01-16T09:30:20.394Z","repository":{"id":42938205,"uuid":"235794714","full_name":"spencermountain/rollup-plugin-filesize-check","owner":"spencermountain","description":"Rollup plugin to ensure your build is approx the right size","archived":false,"fork":false,"pushed_at":"2024-09-24T03:30:17.000Z","size":86,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T03:51:14.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spencermountain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-23T12:54:37.000Z","updated_at":"2024-07-31T18:17:40.000Z","dependencies_parsed_at":"2023-01-20T02:03:43.787Z","dependency_job_id":null,"html_url":"https://github.com/spencermountain/rollup-plugin-filesize-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencermountain%2Frollup-plugin-filesize-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencermountain%2Frollup-plugin-filesize-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencermountain%2Frollup-plugin-filesize-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencermountain%2Frollup-plugin-filesize-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spencermountain","download_url":"https://codeload.github.com/spencermountain/rollup-plugin-filesize-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239484263,"owners_count":19646429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:06:06.590Z","updated_at":"2025-02-20T00:33:02.759Z","avatar_url":"https://github.com/spencermountain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cdiv\u003e\u003cb\u003erollup-plugin-filesize-check\u003c/b\u003e\u003c/div\u003e\n  \u003cdiv\u003e\n    \u003ca href=\"https://npmjs.org/package/rollup-plugin-filesize-check\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/rollup-plugin-filesize-check.svg?style=flat-square\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=rollup-plugin-filesize-check\"\u003e\n    \u003cimg src=\"https://badge-size.herokuapp.com/spencermountain/rollup-plugin-filesize-check/index.js\" /\u003e\n  \u003c/a\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\na small [rollup](https://rollupjs.org) plugin to ensure your build is approx the expected filesize.\n\n![image](https://user-images.githubusercontent.com/399657/72990325-f6fb5080-3dbd-11ea-9d90-5e2882b80ca8.png)\n\n`npm i rollup-plugin-filesize-check --save-dev`\n\nthen in rollup config:\n\n```js\nimport sizeCheck from 'rollup-plugin-filesize-check'\n\nexport default [\n  {\n    input: 'src/index.js',\n    output: [{ file: 'builds/out.js', format: 'umd' }],\n    plugins: [\n      sizeCheck({\n        expect: 95, // sizes in kb\n        warn: 5 // acceptable diff (+/-)\n      })\n    ]\n  }\n]\n```\n\nlooks best with `rollup -c --silent` flag\n\n## Options\n\n- **expect \u003cnumber\u003e** (optional): the size, in kilobytes, you expect the builds to be\n\n* **warn \u003cnumber\u003e** (optional): a difference (+/-), in kilobytes, that like to be warned of (with red text)\n\n## See also\n\n- [rollup-plugin-filesize](https://github.com/ritz078/rollup-plugin-filesize) by ritz078\n- [rollup-plugin-sizes](https://github.com/tivac/rollup-plugin-sizes) by tivac\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspencermountain%2Frollup-plugin-filesize-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspencermountain%2Frollup-plugin-filesize-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspencermountain%2Frollup-plugin-filesize-check/lists"}