Closed
Description
Describe the bug
Hot reload won't update the css created by styled, just after a full reload.
Reproduction
Just try to change any css's prop inside a styled:
https://github.com/eduzz/template-react/tree/vite
System Info
System:
OS: macOS 11.6
CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 490.79 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.0.1 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.1.0 - /usr/local/bin/npm
Watchman: 2021.10.18.00 - /usr/local/bin/watchman
Browsers:
Edge: 94.0.992.50
Safari: 15.0
npmPackages:
@vitejs/plugin-react: 1.0.6 => 1.0.6
vite: 2.6.11 => 2.6.11
Used Package Manager
yarn
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. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- 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.