babel-plugin-optimize-clsx
JSON →Babel plugin that statically evaluates calls to clsx, classnames, or compatible APIs, replacing them with optimized inline expressions. Current stable version is 2.6.2, releasing with minor fixes against clsx/classnames ecosystem shifts. Differentiators: works with any library following the (strings, objects, arrays) signature, handles conditional spreads, and supports JSX. Replaces runtime calls with simpler ternary or concatenation, reducing bundle size. Plug into Babel transforms for production builds.
Traffic · last 30 days ↓71% vs prev 7d
total hits 21
actors 7 distinct systems
last hit 4d ago human
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France
Resources
API endpoints
compatibility /v1/registry/babel-plugin-optimize-clsx/compatibility