nise icon indicating copy to clipboard operation
nise copied to clipboard

Module entry point "nise.js" is wonky

Open rotu opened this issue 2 years ago • 5 comments

package.json lists "module": "nise.js" as an entrypoint, but the nise.js file is a UMD module, not a ES module.

Additionally, the shape of the module when I use a ESM import is wonky. Here's what I get from Node CLI:

>>> await import("nise")
[Module: null prototype] {
  default: {
    fakeServer: {
      // ...
    },
    fakeServerWithClock: {
      // ...
    },
    fakeXhr: {
      // ...
    }
  },
  fakeServer: {
    // ...
  }
}

rotu avatar Jan 08 '23 22:01 rotu