antoniandre / splitpanes

A Vue 3 (and 2) reliable, simple and touch-ready panes splitter / resizer.
https://antoniandre.github.io/splitpanes
MIT License
1.85k stars 166 forks source link

`module` and `exports` fields in package.json pointing to non-existant file `splitpanes.es.js` #179

Closed EosFoundry closed 1 year ago

EosFoundry commented 1 year ago

Specifically ./dist/splitpanes.es.js does not exist as referenced below:

  "module": "./dist/splitpanes.es.js",
  "exports": {
    ".": {
      "import": "./dist/splitpanes.es.js",
    },
  },

This is the contents of the package as pulled from npm:

image

Should it be pointing to ./dist/splitpanes.mjs instead?

desislavsd commented 1 year ago

Yes, I faced that issue too. It breaks my vite setup, but when update package.json to .mjs it works fine.

Here is the PullRequest

antoniandre commented 1 year ago

This should now be fixed in the latest package. 3.1.4