antoniandre / splitpanes

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

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

Closed EosFoundry closed 2 years ago

EosFoundry commented 2 years 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 2 years 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 2 years ago

This should now be fixed in the latest package. 3.1.4