Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent static class names from getting mangled in build #179

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

sjdemartini
Copy link
Owner

Fixes #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.

Fixes #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.
@sjdemartini sjdemartini enabled auto-merge (rebase) November 14, 2023 04:30
@sjdemartini sjdemartini merged commit 872b5f2 into main Nov 14, 2023
1 check passed
@sjdemartini sjdemartini deleted the prevent-classname-mangling branch November 14, 2023 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSS classes mangled in production build
1 participant