Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM version is exporting default.default #42

Open
silverwind opened this issue Apr 18, 2023 · 0 comments
Open

ESM version is exporting default.default #42

silverwind opened this issue Apr 18, 2023 · 0 comments

Comments

@silverwind
Copy link
Contributor

The ESM version published in dist/esm.js seems to contain a double wrapping of default. Trying to import the package in node REPL shows the issue:

> await import("color-hash")
[Module: null prototype] {
  __esModule: true,
  default: { __esModule: true, default: [Function: ColorHash] }
}

Trying the same with require looks fine:

> require("color-hash")
{ __esModule: true, default: [Function: ColorHash] }
@silverwind silverwind changed the title ESM export seems to be on default.default ESM version is exporting default.default Apr 18, 2023
jackbuehner added a commit to jackbuehner/cristata-app that referenced this issue Jun 17, 2023
jackbuehner added a commit to jackbuehner/cristata-app that referenced this issue Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant