lukeed/clsxPublic

A tiny (239B) utility for constructing `className` strings conditionally.

Will this library still be maintained?

RI

I saw some improvements proposed by the community as pull request, that weren't merged for about 2 years.

Also this project "builder" is using an outdated terser version. Maybe with new terser version, dist file can be even smaller, I don't know. But is something to take a look at

  1. LU

    Yes. Things don’t need to change just because. Most of PRs aren’t actually more performant — depends on V8 versions and so I’m going to run a sufficient profiling to reply to each of them, which takes time & isn’t high priority even in the event that they’re true. clsx is already extremely fast and faster than alternatives. The builder is fine and output on ES5 code between last 2 terser versions is effectively the same. Tough to compress < 300b of es5 dramatically different

  2. lukeedclosed4 years ago on GitHub