-
Notifications
You must be signed in to change notification settings - Fork 27
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
Doesn't export fields with css-loader ^4.0.0 #39
Comments
It's maybe due to new export feature in css-loader - es6 export (esModule: true) |
Hey @mattcompiles, do you think you could help us with this? :) |
Same issue here, played around with the options of the css-loader, but did not get any export |
Same here. I tried all different css-loader options and set |
FYI: I ended up switching to @teamsupercell/typings-for-css-modules-loader as this repo seems no longer maintained. Worked with that loader. |
For css-loader version 4 has different local export name from version 3. In the index.js file line 83, we can add function to make it work for both versions. See the pull request below for the fix. |
Thanks @mydatahack for this PR! You rock! 🤘💀🤘 |
We are using css-modules-typescript-loader to generate our types with CSS modules, css-loader and sass.
I'm seeing an issue in the generated typescript files from
css-modules-typescript-loader
. When we update tocss-loader
version 4, the exports have no fields in CssExports.This works fine with
css-loader
version 3.6.0 but issue appears when updating tocss-loader
version 4.The text was updated successfully, but these errors were encountered: