Replies: 1 comment
|
Agree with this. I use PostCSS with CSS Nano and don’t plan to change to LightningCSS for now. I just migrated a project to Vite 8, and used npm In your "devDependencies" : {
"vite": "^8"
},
"overrides": {
"lightningcss": "0.0.0"
}
Then remove your
Your Vite (8) config also needs to change |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Consider a Node.js project using
vitestfor testing.There is absolutely no CSS, but
vitestrequiresviteand it (evenv8.0.0-beta.0) nevertheless requireslightningcssas a runtime dependency, that also installsdetect-libcand 11 binary packages namedlightningcss-[OS].I made an experiment by overriding it in my pnpm config:
And worked well, so I presume that this package is not really used when no CSS present.
Therefore, for
vitev8 I propose movinglightningcssto optional peer dependencies, so that consumers can install it only when needed.All reactions