react-router icon indicating copy to clipboard operation
react-router copied to clipboard

fix: support Vite plugins adding a server entry

Open brillout opened this issue 2 months ago • 8 comments

Add support for Vite plugins that add a server build entry. For example, this change is required for being able to use React Router with Telefunc.

brillout avatar Sep 18 '25 10:09 brillout

⚠️ No Changeset found

Latest commit: f3c0d274b01813145745ae645da810d95dbdc8d4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Sep 18 '25 10:09 changeset-bot[bot]

Hi @brillout,

Welcome, and thank you for contributing to React Router!

Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once.

You may review the CLA and sign it by adding your name to contributors.yml.

Once the CLA is signed, the CLA Signed label will be added to the pull request.

If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at [email protected].

Thanks!

- The Remix team

remix-cla-bot[bot] avatar Sep 18 '25 10:09 remix-cla-bot[bot]

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

remix-cla-bot[bot] avatar Sep 18 '25 10:09 remix-cla-bot[bot]

Can you open an issue with a minimal reproduction that we can use to see the issue and validate the fix? Or, if it's possible to write a small E2E test with a vite plugin that demonstrates this issue that's even better - but if that's tricky or it needs to pull in a third party, let's just open an issue with a repro instead of pulling a third party into the E2E test.

brophdawg11 avatar Sep 18 '25 13:09 brophdawg11

Reproduction: https://github.com/brillout/telefunc-react-router/tree/repro

brillout avatar Sep 18 '25 14:09 brillout

Bug report: https://github.com/remix-run/react-router/issues/14352

brillout avatar Sep 18 '25 14:09 brillout

if it's possible to write a small E2E test

I ain't sure how to easily reproduce this without adding a Telefunc dependency to React Router's monorepo.

brillout avatar Sep 18 '25 14:09 brillout

🥳 I would love to be able to supply entry files (and event root.tsx) as a vite plugin. We have several apps that use common entries and root routes, abstracting that away is a bit tedious as long as React Router requires root.tsx and the entry.*.tsx files to exist on disk at specific locations.

rossipedia avatar Sep 21 '25 18:09 rossipedia