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] }
The ESM version published in
dist/esm.jsseems to contain a double wrapping ofdefault. Trying to import the package in node REPL shows the issue:Trying the same with
requirelooks fine: