{"id":15021626,"url":"https://github.com/ambar/vscode-bundle-size","last_synced_at":"2025-10-29T11:31:25.138Z","repository":{"id":41054127,"uuid":"420982457","full_name":"ambar/vscode-bundle-size","owner":"ambar","description":"Display the bundle size of npm packages: https://marketplace.visualstudio.com/items?itemName=ambar.bundle-size","archived":false,"fork":false,"pushed_at":"2024-04-04T02:23:55.000Z","size":868,"stargazers_count":28,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-04T23:41:43.944Z","etag":null,"topics":["bundle","size","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ambar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-25T10:44:19.000Z","updated_at":"2024-03-08T22:09:44.000Z","dependencies_parsed_at":"2024-04-04T03:29:29.458Z","dependency_job_id":"7213acb4-32a4-432c-8101-50ef2d5dc3f3","html_url":"https://github.com/ambar/vscode-bundle-size","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fvscode-bundle-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fvscode-bundle-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fvscode-bundle-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fvscode-bundle-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ambar","download_url":"https://codeload.github.com/ambar/vscode-bundle-size/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238817390,"owners_count":19535519,"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":["bundle","size","vscode","vscode-extension"],"created_at":"2024-09-24T19:56:48.655Z","updated_at":"2025-10-29T11:31:19.818Z","avatar_url":"https://github.com/ambar.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# bundle-size\n\nDisplay the bundle size of npm packages.\n\n## Features\n\n- Lightning fast, instantly show bundle result, powered by [esbuild](https://github.com/evanw/esbuild)\n- Support JSX/Typescript/CSS\n- For namespace (`* as`) imports, only count in-use properties\n- Bundle in memory and locally, no file writing, no extra installation\n- Provide hover card of bundle statistics\n\nPreview basic usage:\n\n![preview basic](./images/preview.png)\n\nPreview namespace imports:\n\n![preview namespace](./images/preview-namespace.png)\n\nPreview hover card:\n\n![preview hover](./images/preview-hover.png)\n\n## Requirements\n\nBecause this extension builds locally, you need to pre-install dependencies.\n\n## Extension Settings\n\n```jsonc\n{\n  \"bundleSize.cache\": {\n    \"type\": \"boolean\",\n    \"default\": true,\n    \"description\": \"Whether to cache the bundle result (it's highly recommended to turn on, unless you are debugging or want to edit files in dependencies)\"\n  },\n  \"bundleSize.cautionSize\": {\n    \"type\": \"number\",\n    \"default\": 50,\n    \"description\": \"Size limit in KB, display caution color if exceeded\"\n  },\n  \"bundleSize.dangerSize\": {\n    \"type\": \"number\",\n    \"default\": 100,\n    \"description\": \"Size limit in KB, display danger color if exceeded\"\n  },\n  \"bundleSize.infoColor\": {\n    \"type\": \"string\",\n    \"default\": \"#090\",\n    \"description\": \"Info (default) color for the size text\"\n  },\n  \"bundleSize.cautionColor\": {\n    \"type\": \"string\",\n    \"default\": \"#ea0\",\n    \"description\": \"Caution color for the size text\"\n  },\n  \"bundleSize.dangerColor\": {\n    \"type\": \"string\",\n    \"default\": \"#e33\",\n    \"description\": \"Danger color for the size text\"\n  },\n  \"bundleSize.loader\": {\n    \"type\": \"object\",\n    \"patternProperties\": {\n      \".*\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"base64\",\n          \"binary\",\n          \"copy\",\n          \"css\",\n          \"dataurl\",\n          \"default\",\n          \"empty\",\n          \"file\",\n          \"js\",\n          \"json\",\n          \"jsx\",\n          \"local-css\",\n          \"text\",\n          \"ts\",\n          \"tsx\"\n        ]\n      }\n    },\n    \"default\": {},\n    \"markdownDescription\": \"Override the loader in Bundle Size (eg: `.js: jsx` will force `.js` files to be treated as JSX), see [esbuild#loader](https://esbuild.github.io/api/#loader) for more details\"\n  },\n  \"bundleSize.flowPattern\": {\n    \"type\": \"string\",\n    \"default\": \"\\\\/node_modules\\\\/(@react-native|react-native|react-native-linear-gradient)\\\\/(.*)\\\\.js$\",\n    \"description\": \"The regexp pattern to match files containing the Flow type\"\n  }\n}\n```\n\n## Known Issues\n\n- Only import declaration is supported (no plan for `require()` statement)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambar%2Fvscode-bundle-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fambar%2Fvscode-bundle-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambar%2Fvscode-bundle-size/lists"}