Skip to content
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

Open
Neevalt opened this issue Mar 25, 2024 · 0 comments
Open

Usage with Vite performance question #706

Neevalt opened this issue Mar 25, 2024 · 0 comments

Comments

@Neevalt
Copy link

Neevalt commented Mar 25, 2024

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's css.transformer from lightningcss to postcss, then run DEBUG="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 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant