-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updated to support daisyui 4.0.0+ version. #1
base: main
Are you sure you want to change the base?
Conversation
Hey @LeekJay! Are you still using this package? Running the Related to unocss/issues/2039. Seems that Update: |
Wow, really great find, thanks a lot! P.S. there seems to be another call to |
Fixed.unocss-preset-component/pr/1 This issue has been identified: Array.reverse() is an in-place operation, changing the original array. If this array is in the module's global scope, its state (including the global scope's array state) will be retained when the module is read and cached by Vite. Then when using Array.reverse(), since this is an in-place operation, the array state will be changed. This will be detected by Vite, which will consider the module to have changed, thus triggering a hot update. When a hot update is triggered, Vite will not re-read and parse the module file, but will use the cached module state, which has been changed by Array.reverse(). Therefore, after each hot update Array.reverse() will be run again, and the array state changes again, which triggers a hot update, forming an infinite loop. To fix this problem, we can avoid using Array.reverse() directly in the global scope. Or we can use |
Yes, maybe unocss already handles that in |
No description provided.