{"id":15891249,"url":"https://github.com/ctrlplusb/react-router-bundlesize","last_synced_at":"2025-07-04T00:05:15.582Z","repository":{"id":66058726,"uuid":"63582932","full_name":"ctrlplusb/react-router-bundlesize","owner":"ctrlplusb","description":"Debugging react-router bundle size optimisation.","archived":false,"fork":false,"pushed_at":"2016-07-18T21:00:32.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T00:03:37.082Z","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/ctrlplusb.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":"2016-07-18T08:11:55.000Z","updated_at":"2019-04-06T04:40:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c6a5953-7aad-475e-8621-9ee121817672","html_url":"https://github.com/ctrlplusb/react-router-bundlesize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctrlplusb/react-router-bundlesize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Freact-router-bundlesize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Freact-router-bundlesize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Freact-router-bundlesize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Freact-router-bundlesize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrlplusb","download_url":"https://codeload.github.com/ctrlplusb/react-router-bundlesize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Freact-router-bundlesize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421884,"owners_count":23464046,"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-06T07:21:16.707Z","updated_at":"2025-07-04T00:05:15.489Z","avatar_url":"https://github.com/ctrlplusb.png","language":"JavaScript","readme":"__Issue:__ https://github.com/reactjs/react-router/issues/3642\n\n## Steps to reproduce\n\nRun the following commands\n```console\ngit clone https://github.com/ctrlplusb/react-router-bundlesize\ncd react-router-bundlesize\nnpm install\nnpm run analyse\n```\n\nThen... \n- Browse to http://webpack.github.io/analyse/\n- Select the `build/stats.json` file.\n- Go to the \"modules\" section and look for `react-router` imports.  You will see imports for code that is not being used. e.g. createHashHistory.\n\n## Expected Behavior\n\nDon't include unnecessary modules from `react-router` and `history` in bundle output when following the guidelines from the [Minimizing Bundle Size](https://github.com/reactjs/react-router/blob/master/docs/guides/MinimizingBundleSize.md) docs.\n\n## Actual Behavior\n\nThere are imports that I am not using/importing.  The below screenshot isn't the exhaustive list, but you can see references to `createHashHistory` for example whilst in my source I explicitly import `react-router/lib/browserHistory`.  A few others too.\n\n\u003cimg width=\"640\" alt=\"screenshot 2016-07-18 09 39 45\" src=\"https://cloud.githubusercontent.com/assets/12164768/16909733/5d7ad786-4ccc-11e6-9133-67cc05e05c76.png\"\u003e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlplusb%2Freact-router-bundlesize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrlplusb%2Freact-router-bundlesize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlplusb%2Freact-router-bundlesize/lists"}