sjdemartini / mui-tiptap

A Material UI (MUI) styled WYSIWYG rich text editor, using Tiptap
MIT License
320 stars 44 forks source link

Remove seemingly incorrect/unneeded `"type": "module"` field #35

Closed sjdemartini closed 1 year ago

sjdemartini commented 1 year ago

By removing this, the package will default to being a CJS package. Other packages (e.g., tss-react, mui-datatables, MUI, react-pdf) do not specify this either.

From testing installing in a third-party application, this fixes an issue in testing code that imports mui-tiptap (at least when using vitest):

Error: Cannot find module '/path/node_modules/mui-tiptap/dist/esm/ControlledBubbleMenu' imported from /path/node_modules/mui-tiptap/dist/esm/index.js