CSS Modules class name format in Next.js 16 #85869
Unanswered
pavolvarga
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
After upgrading from next.js 15 to next.js 16, the format of class names in our project have changed from
Details_labeltoDetails-module-scss-module__MGoXJG__label.After some searching I believe this is caused by LightningCSS used by turbopack in next.js 16 instead of PostCSS used by webpack in next.js 15.
According to LightningCSS's documentation is it possible to specifiy custom naming patterns..
I was not able to find any information about this in next.js's documentation.
Is this LightningCSS's configuration option not suported by next.js ?
If that's the case, is there some other way to preserve the class name pattern (when using css modules) from next.js 15 ?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions