Skip to content

Can we add exports field for this package? #321

Description

@krutoo

Hi, i try to use classnames in nodejs and i need to import classnames/bind but not classnames/bind.js (because of my bundler config)

can we add something like this:

{
  "exports": {
    ".": {
      "default": "./index.js"
    },
    "./bind": {
      "default": "./bind.js"
    },
    "./dedupe": {
      "default": "./dedupe.js"
    }
  },
}

in package.json of classnames?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions