yjs / y-prosemirror

ProseMirror editor binding for Yjs
https://demos.yjs.dev/prosemirror/prosemirror.html
MIT License
335 stars 116 forks source link

ESM issue: ./dist/y-prosemirror.mjs doesn't exist #79

Closed ohardy closed 2 years ago

ohardy commented 2 years ago

Describe the bug In package.json:

"exports": {
    ".": {
      "import": "./dist/y-prosemirror.mjs",
      "require": "./dist/y-prosemirror.cjs"
    }
  },

but the file dist/y-prosemirror.mjs doesn't exist in the package.

To Reproduce Use y-prosemirror with webpack, it will fail with: Module not found: Error: Can't resolve 'y-prosemirror'

Expected behavior ./dist/y-prosemirror.mjs file should exist or be replaced with ./dist/y-prosemirror.cjs

The issue appear only with the last version. Installing version 1.0.9 fix the bug because no "exports" in package.json

dmonad commented 2 years ago

Whoops, sorry for that. I fixed it in v.1.0.10.