birdofpreyru / css-modules-require-hook

A require hook to compile CSS Modules in runtime
Other
2 stars 0 forks source link

Compatible with the latest version of css loader #11

Open pavelpalonko opened 3 weeks ago

pavelpalonko commented 3 weeks ago

Hello! Can you please tell me if the package will be supported? Specifically interested in compatibility with the latest version of css-loader. As I understand, generation of hash for class names is different now.

birdofpreyru commented 3 weeks ago

Hey @pavelpalonko , I think, I won't be supporting this package going forward.

I was using it in my React framework, as a dependency of https://github.com/birdofpreyru/babel-plugin-css-modules-transform — that one I deprecated in March 2022, and if I am not mistaken I don't have any other use for this one either. Not sure, though, why I was updating this one till April 2023 — I will double-check it when I have time, and if I confirm I don't have any use for it, I'll mark it as deprecated also.

FYI: I actively support another package dealing with CSS modules — https://github.com/birdofpreyru/babel-plugin-react-css-modules, which also needs to be kept up with css-loader changes. So, if you are to fork and upgrade this one to restore compatibility with css-loader, it might be helpful to look into the recent history of https://github.com/birdofpreyru/babel-plugin-react-css-modules, and just copy / paste from there changes that were necessary in response to css-loader changes.

pavelpalonko commented 3 weeks ago

Thanks for the reply @birdofpreyru ! Making a fork with the changes I need sounds good.

Since I have the opportunity, I'll ask you what you would recommend to solve the problem that the current package for css modules solves.

I would not want to be tied to babel.

Thanks and have a nice day!

birdofpreyru commented 3 weeks ago

I'll ask you what you would recommend to solve the problem that the current package for css modules solves. I would not want to be tied to babel.

I don't know, I generally opt for Babel in my projects.