lukeed/clsxPublic

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

add conditional exports #63

Closedcometkimclosed 1 commit intomasterfromrefs/pull/63/head
  1. CO

    No description provided.

  2. RE

    This PR breaks native ESM (`.mjs` extension is necessary) and TypeScript (CJS interface does not match ESM interface, although this was already broken) support. Also there there should be a `"default"` field, which should be the last key in the export map. Since this package doesn’t specify `"type": "module"`, the file to resolve for `require` should he marked as `"default"`.

    I proposed a proper fix in #57, but the author has shown no interest to resolve this issue. This does not include exports for `package.json` as you added here.

  3. cometkimclosed3 years ago on GitHub