Next.js Discord

Discord Forum

Is there a way to prevent the build from mangling class names for a set of files?

Unanswered
Alfonso Guerra posted this in #help-forum
Open in Discord
I have a library of code whose class names must be preserved, or preferably, have the ability to de-mangle an object's class name when used.

1 Reply

@Alfonso Guerra I have a library of code whose class names must be preserved, or preferably, have the ability to de-mangle an object's class name when used.
are you using module css? this is a feature of module css to prevent class name clashes and cannot be opted out

if you want to preserve the class name, just use normal css instead of module css