You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regular expressions, which are used in getClasses are misinterpreting this code, which then results into the wrong class names.
Is it possible to get that fixed?
Eg. by implementing a to, which defines the end for the content slicing. I guess, that could be a simple content.indexOf('{', from + 1).
Or do you have an idea how to get around this issue?
if I inject esModule: true into the css-loader options I get the following content:
I have a couple of Next.js-based projects, which have the problem that
dts-css-modules-loader
createsd.ts
files which contain:These are no classes, which are used in my CSS modules.
I've now debugged that, and saw that the
content
parameter of thegetClasses()
method has this value:The regular expressions, which are used in
getClasses
are misinterpreting this code, which then results into the wrong class names.Is it possible to get that fixed?
Eg. by implementing a
to
, which defines the end for the content slicing. I guess, that could be a simplecontent.indexOf('{', from + 1)
.Or do you have an idea how to get around this issue?
if I inject
esModule: true
into thecss-loader
options I get the followingcontent
:export default
is not even covered bydts-css-modules-loader
, so this results into no class names.The text was updated successfully, but these errors were encountered: