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
Usage with Vite performance question #706
Comments
I don't really have time to investigate this for you but let me know if you figure it out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I wanted to give a try to lightningcss on my Vue project using vite. However, using Vite's debug tools, I see that the CSS part of my components is taking actually longer with lightningcss vs postcss with the vite:plugin-transform.
You can see it in action here : https://stackblitz.com/edit/vitejs-vite-veyt6b?file=vite.config.js&terminal=dev
Just change the
vite.config.js
file'scss.transformer
fromlightningcss
topostcss
, then runDEBUG="vite:plugin-transform" npm run dev
.However both are quite "slow" on stackblitz, the difference is quite drastic once the project is cloned on my own machine (as in, vite:css takes ~0.1ms with postcss, and around ~30ms with lightnincss).
Any idea why that difference is and if it can be adressed ?
Thank you in advance 😃
The text was updated successfully, but these errors were encountered: