-
-
Notifications
You must be signed in to change notification settings - Fork 189
Labels
Description
Related plugins
Describe the bug
When importing CSS with ?url
and then rendering to a link
element (or returning from a links
function export from a route module in React Router Framework Mode, but I'm reproducing this at a lower level) styles are not updated when editing the CSS file.
Reproduction
https://github.com/markdalgleish/vitejs-plugin-rsc-css-url-hmr-issue-reproduction
Steps to reproduce
pnpm install
pnpm dev
- Open http://localhost:5173 in the browser
- Edit
src/test-server.css
andsrc/test-client.css
Changes should be reflected in the browser immediately, but instead require a full page reload.
System Info
System:
OS: macOS 15.5
CPU: (12) arm64 Apple M4 Pro
Memory: 649.91 MB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.5.0 - ~/.nvm/versions/node/v24.5.0/bin/node
npm: 11.5.1 - ~/.nvm/versions/node/v24.5.0/bin/npm
pnpm: 10.8.0 - ~/Library/pnpm/pnpm
bun: 1.0.1 - ~/.bun/bin/bun
Browsers:
Chrome: 139.0.7258.139
Edge: 139.0.3405.111
Firefox Nightly: 122.0a1
Safari: 18.5
npmPackages:
@vitejs/plugin-react: latest => 5.0.1
@vitejs/plugin-rsc: latest => 0.4.23
vite: ^7.1.2 => 7.1.3
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.