You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a Node.js project using vitest for testing.
There is absolutely no CSS, but vitest requires vite and it (even v8.0.0-beta.0) nevertheless requires lightningcss as a runtime dependency, that also installs detect-libc and 11 binary packages named lightningcss-[OS].
I made an experiment by overriding it in my pnpm config:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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.Beta Was this translation helpful? Give feedback.
All reactions