@brillout one more binary increases install size though
@brillout one more binary increases install size though
@patak @trysound @[email protected] @daniel I believe this was about the watcher. Lightning CSS is already distributed per-platform. The binary size did increase a bunch when we added custom transform support. I debated that here: https://twitter.com/devongovett/status/1599101826338459649
If that’s a problem for Vite we could make a lightningcss-lite build without it, but would be a bit unfortunate not to support plugins.
“How much do you care about npm install size? I'm considering adding a feature to lightningcss, but it would significantly increase the binary size. Should I add it to the main package, or release a separate package that you'd use instead if you wanted to use this feature?”
l'm wondering why binaries are getting so big. Not specific lib but fundamentally. Maybe compiler includes too much of stdlib? Or there is additional instrumentation added to compiled object.
@trysound fwiw, here's the real-world difference for lightningcss:
opt-level=3 (current, optimizing for speed): 7.1MB, minify bootstrap in 4.6ms
opt-level=z (optimizing for size): 3.5MB, 10.9ms
so about half the size, but over 2x slower.