unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js
https://unlayer.com/
MIT License
4.6k stars 742 forks source link

broken default export in cjs #321

Closed Sam-Apostel closed 1 year ago

Sam-Apostel commented 1 year ago

For some reason tsdx makes a named export default. This breaks environments where cjs is used.

temp workaround is using default export.

Note: TSDX is unmaintained.

The problem is in the current release: dist/react-email-editor.cjs.development.js:232 should be exports.EmailEditor = EmailEditor; but it is exports.default = EmailEditor;

lucasbesen commented 1 year ago

@Sam-Apostel thank you. Please update the latest version