Description
I'm using React Router as a...
framework
Reproduction
https://stackblitz.com/edit/github-adcvcdeh-amghqqjy?file=vite.config.ts

System Info
7.4.0 and latest nightly of /dev package because of another fix we needed around the typgen: #13267
#13066 this PR is likely related
Used Package Manager
yarn
Expected Behavior
When using vite env api future flag, I don't expect to get errors around critical css being missing.
Actual Behavior
When I provide the base in the vite config and the basename in the react config for every route I travel to I get errors saying the critical css is missing from the react router dev server package.
This only happens when using the new vite env api future flag. We're looking at adopting it early because of some issues with msw and playwright, but my repo shows that you can find this behavior in a basic case as well.
The issue seems to only affect the console output? The app seems to be working and let's me travel between routes and they look styled.