yjs / y-prosemirror

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

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

Closed ohardy closed 3 years ago

ohardy commented 3 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 3 years ago

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