-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
values in selectors aren't escaped properly. #966
Comments
Feel free to send a PR |
always happy to help out, I was hoping you might have an idea where the problem could be? also why you are here what do you think about: css-modules/css-modules#324 :D |
let's solve issue first, and when create monorepo 👍 |
I think problem inside css-loader, try to debug |
This isn't fixed is is it. Looks like there was just a test case added |
@jquense What output you expected in this case? |
I noted it here: The output should be |
i'll update the test case |
@jquense in theory you can use |
I see what you mean, maybe other developers specifically want to add a class, but i can't imagine use case |
we do use I think it makes sense to leave escaping up to the dev if they use |
@jquense yep, it is very rare use case, we can't change this right now only in next major release, now it is breaking change. Also developers really can want insert own output from |
I think this might be the same issue I am facing. Since // css-loader options:
{
module: 'local',
localIdentName: '[name]__[local]___[hash:base64:7]'
}
// button.css.js
export default {
'.container': { /* css rules */ }
} The resulting classname previously was Was the intention that (Also if this is unrelated i can create a separate issue). |
@michaeltaranto can you create minimum reproducible test repo? |
on latest css-loader. I'd expect this to be true for any defined value but not importing classes where the local ident is generated.
// button.css
.button { }
// toolbar.css
The local names would need escaping and webpack outputs:
which is correctly escaped but in toolbar its
note that the interpolated value isn't escaped. I'm not sure why this is happening maybe it needs to be re-escaped?
The text was updated successfully, but these errors were encountered: