-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
Slow unocss config loading since v0.59.0 #3812
Comments
On my latpop also reproducible (i7 12700H):
|
@hi-ogawa you can provide cwd and file name when loading the configuration:
|
Using in the reproductions (preparing PR): "overrides": {
"unconfig": "0.4.1"
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UnoCSS version
0.60.2
Describe the bug
I was seeing slower startup when integrating unocss in a recent project and it looks like this is happening since v0.59.0.
It might not be noticeable on a decent PC, but I happen to be (temporary) using a worst laptop and this felt like a significant slow down (for exampele, from 608.85ms to 2.020s in a stackblitz reproduction below).
I briefly checked perf from
node --inspect-brk repro.mjs
and it appears thatjiti
(used byunconfig
, which in turn used by@unocss/config
) is taking a long time transforming something. I'm suspecting this might be becausejiti
is transforming entireunocss
after it became esm only.Show screenshot of performance devtools
Reproduction
https://github.com/hi-ogawa/reproductions/tree/main/unocss-jiti-esm-slow-config
https://stackblitz.com/github/hi-ogawa/reproductions/tree/main/unocss-jiti-esm-slow-config?file=repro.mjs
System Info
(stackblitz)
Validations
The text was updated successfully, but these errors were encountered: