npm clsx 1.2.0
v1.2.0

latest releases: 2.1.1, 2.1.0, 2.0.1...
22 months ago

Features

  • Add named clsx export alias (#43, #44): 56ab81f
    Thank you @danikaze~!

    This is purely an alias for the default export so that TypeScript users can avoid the esModuleInterop setting. In other words, the follow import statements 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


Full Changelog: v1.1.1...v1.2.0

Don't miss a new clsx release

NewReleases is sending notifications on new releases.