sjdemartini / mui-tiptap

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

Prevent static class names from getting mangled in build #179

Closed sjdemartini closed 1 year ago

sjdemartini commented 1 year ago

Fixes https://github.com/sjdemartini/mui-tiptap/issues/178

In certain build setups, we can't use function.name, since the function will be mangled/minified, and so to ensure the MuiTiptap classes (like MuiTiptap-RichTextField-content) are static and consistent, we have to hard-code the component names as strings.