Help with Meteor RSPack CSS Modules

Has anyone been able to use css modules in Meteor 3.4 with RSPack? I get issues making the modules work and getting the import to work without TypeScript definition issues.

Not a use case I have experimented with yet. I will do it soon. Rspack has docs on CSS modules setup.

Could you share the repository with the app exactly at the point where the error happens? It would be interesting for me to experiment more closely with what you are trying to do.

Thank you @nachocodoner for taking a look at this. I did a very simple repository with a fresh installation of Meteor 3.4 with the TypeScript template (GitHub - juanpmd/meteor-css-modules ยท GitHub).

If I use import * as styles from './App.module.css'; CSS Modules work but with TypeScript errors and when I enable default imports in Rspack, it does not work (using the way defined in CSS - Rspack).