Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf regression on v0.38.0 for HMR on Storybook + Vite #2605

Closed
1 of 3 tasks
adbutterfield opened this issue May 17, 2024 · 0 comments
Closed
1 of 3 tasks

Perf regression on v0.38.0 for HMR on Storybook + Vite #2605

adbutterfield opened this issue May 17, 2024 · 0 comments

Comments

@adbutterfield
Copy link
Contributor

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

  1. You need a component library set up with Storybook + Vite
  2. Install panda v0.38.0
  3. Run DEBUG="vite:plugin-transform" storybook dev
  4. Make a change that triggers HMR (component code or story code)
  5. Check the time it takes to transform css in the console output
  6. 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)
  7. Install panda v0.37.2
  8. 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

@chakra-ui chakra-ui locked and limited conversation to collaborators May 19, 2024
@segunadebayo segunadebayo converted this issue into discussion #2608 May 19, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant