{"id":30881026,"url":"https://github.com/skratchdot/react-router-issue","last_synced_at":"2025-09-08T07:43:10.865Z","repository":{"id":278924780,"uuid":"937188656","full_name":"skratchdot/react-router-issue","owner":"skratchdot","description":"compare build output differences between remix v2 and react-router v7","archived":false,"fork":false,"pushed_at":"2025-03-07T00:54:03.000Z","size":396,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T01:34:29.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/skratchdot.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":"2025-02-22T14:49:42.000Z","updated_at":"2025-03-07T00:54:06.000Z","dependencies_parsed_at":"2025-02-22T15:46:38.054Z","dependency_job_id":"2079edc8-4d7b-4220-b192-0dccdce4dc4d","html_url":"https://github.com/skratchdot/react-router-issue","commit_stats":null,"previous_names":["skratchdot/react-router-issue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skratchdot/react-router-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Freact-router-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Freact-router-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Freact-router-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Freact-router-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skratchdot","download_url":"https://codeload.github.com/skratchdot/react-router-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Freact-router-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274152756,"owners_count":25231293,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":"2025-09-08T07:43:08.033Z","updated_at":"2025-09-08T07:43:10.860Z","avatar_url":"https://github.com/skratchdot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-router-issue\n\nThis monorepo was created to help log a github issue:\n\n- \u003chttps://github.com/remix-run/react-router/issues/13091\u003e\n\nIt contains 2 packages/apps created in different ways: one with remix v2, and one with react-router v7.\n\nThe steps I took were:\n\n```shell\ncd packages;\nnpx create-remix@latest remix-app\nnpx create-react-router@latest react-router-app\n```\n\n(see [remix docs](https://remix.run/docs/en/main/start/quickstart) and [react-router docs](https://reactrouter.com/start/framework/installation))\n\nAfter that I made `vite.config.ts` changes to both apps:\n\n```typescript\n  build: {\n    rollupOptions: {\n      // https://vitejs.dev/config/build-options.html#build-rollupoptions\n      output: {\n        // https://rollupjs.org/configuration-options/#output-assetfilenames\n        assetFileNames: 'myapp-assets/myapp-[name]-[hash][extname]',\n        // https://rollupjs.org/configuration-options/#output-chunkfilenames\n        chunkFileNames: 'myapp-chunks/myapp-[name]-[hash].js',\n        // https://rollupjs.org/configuration-options/#output-entryfilenames\n        entryFileNames: 'myapp-entries/myapp-[name]-[hash].js',\n      },\n    },\n  },\n```\n\nand I set `ssr: false` in the respective framework configs.\n\nAfter building both apps, the `build` folder output is not what I would expect. In react-router v7, my route files are showing up in `assets` (and not in the rollup entry folder that I configured).\n\n## viewing build output\n\nYou can view the different build output in the [builds](./builds/) folder, or on github at:\n\n- \u003chttps://github.com/skratchdot/react-router-issue/tree/main/builds\u003e\n\n## getting started\n\n```shell\ngit clone git@github.com:skratchdot/react-router-issue.git\ncd react-router-issue\npnpm install\npnpm build\n```\n\nyou can also run both apps via:\n\n```shell\npnpm dev\n```\n\n## the fix\n\nWhen version 7.3.0 was published, the issue was fixed. You can see the update in this repo by viewing the following commit (which updates from v7.2.0 to v7.3.0):\n\n- \u003chttps://github.com/skratchdot/react-router-issue/commit/aadf4d8275b037020bcc97f6bef8587bef1947e6\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Freact-router-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskratchdot%2Freact-router-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Freact-router-issue/lists"}