{"id":20348886,"url":"https://github.com/zgreen/bundle-size-test","last_synced_at":"2026-05-09T08:31:19.308Z","repository":{"id":74427985,"uuid":"481611481","full_name":"zgreen/bundle-size-test","owner":"zgreen","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-14T13:17:33.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-02T19:24:48.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zgreen.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":"2022-04-14T13:17:31.000Z","updated_at":"2022-04-14T13:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"63d9c3c6-9920-480b-9f96-42f9bf1aa894","html_url":"https://github.com/zgreen/bundle-size-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zgreen/bundle-size-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fbundle-size-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fbundle-size-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fbundle-size-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fbundle-size-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgreen","download_url":"https://codeload.github.com/zgreen/bundle-size-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fbundle-size-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32812211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-14T22:22:55.416Z","updated_at":"2026-05-09T08:31:19.288Z","avatar_url":"https://github.com/zgreen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a reproduction case for an issue where using `next-swc` instead of `babel` causes bundle sizes to get larger, because `next-swc` does not use `browserslist`. This project was created with `create-next-app` and includes no additional code, and no additional dependencies, except for babel.\n\nConversation is here: https://github.com/vercel/next.js/discussions/30237#discussioncomment-2288587\n\n## Test results\n\n### With `next-swc`\n\n```\nPage                                       Size     First Load JS\n┌ ○ /                                      6.26 kB        80.7 kB\n├   └ css/149b18973e5508c7.css             655 B\n├   /_app                                  0 B            74.5 kB\n├ ○ /404                                   192 B          74.7 kB\n└ λ /api/hello                             0 B            74.5 kB\n+ First Load JS shared by all              74.5 kB\n  ├ chunks/framework-00b57966872fc495.js   44.9 kB\n  ├ chunks/main-f4ae3437c92c1efc.js        28.3 kB\n  ├ chunks/pages/_app-f55443f2448c8e66.js  493 B\n  ├ chunks/webpack-69bfa6990bb9e155.js     769 B\n  └ css/27d177a30947857b.css               194 B\n```\n\n### With `babel`\n\n```\nPage                                       Size     First Load JS\n┌ ○ /                                      6.67 kB        72.9 kB\n├   └ css/149b18973e5508c7.css             655 B\n├   /_app                                  0 B            66.2 kB\n├ ○ /404                                   2.51 kB        68.7 kB\n└ λ /api/hello                             0 B            66.2 kB\n+ First Load JS shared by all              66.2 kB\n├ chunks/framework-00b57966872fc495.js   44.9 kB\n├ chunks/main-ea7e989417432124.js        19.3 kB\n├ chunks/pages/_app-61908809f3d5c637.js  553 B\n├ chunks/webpack-d27a0b5d1fa67d61.js     1.48 kB\n└ css/27d177a30947857b.css               194 B\n```\n\n## Test it yourself\n\nSimply add or remove `babel.config.js`, which will toggle the `babel`-based build on and off. You can also try enabling/disabling `swcMinify` in `next.config.js` (note that this has no effect on bundle sizes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgreen%2Fbundle-size-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgreen%2Fbundle-size-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgreen%2Fbundle-size-test/lists"}