Perf regression on v0.38.0 for HMR on Storybook + Vite
adbutterfield opened this issue · comments
Description
I noticed that HMR gets slower and slower after each change on Storybook after upgrading from v0.37.2. Versions from v.0.38.0 on seem to all have the issue.
I didn't check if it affects vite only, or also webpack.
Link to Reproduction
Sorry, no reproduction
Steps to reproduce
- You need a component library set up with Storybook + Vite
- Install panda v0.38.0
- Run
DEBUG="vite:plugin-transform" storybook dev
- Make a change that triggers HMR (component code or story code)
- Check the time it takes to transform css in the console output
- Repeat steps 4 & 5, the time it takes to transform css will continue to increase with each change (in my case starts 200-300ms, eventually going up to 4+ seconds)
- Install panda v0.37.2
- Repeat steps 3-6, time it takes to transform css stays at 200-300ms
JS Framework
React
Panda CSS Version
0.38.0
Browser
No response
Operating System
- macOS
- Windows
- Linux
Additional Information
No response