v1.2.0
Features
-
Add named
clsxexport alias (#43, #44): 56ab81f Thank you @danikaze~! This is purely an alias for the default export so that TypeScript users can avoid theesModuleInteropsetting. In other words, the followimportstatements are effectively identical, but the latter is preferred by TypeScript:import clsx from 'clsx'; // or import { clsx } from 'clsx';Important: Just to reiterate, both still work!
Chores
- Migrate from
tapetouvufor tests: 1c36d10 - Add Node 14 and Node 16 to CI test matrix: bc4f827
- Update "string variadic" tests (#30): 74cefa6 Thank you @gingerrific~!
- Enable GitHub Sponsors button: 400b848
Full Changelog: https://github.com/lukeed/clsx/compare/v1.1.1...v1.2.0