-
Notifications
You must be signed in to change notification settings - Fork 29
Upgrading to [email protected] generates properties from a source map #33
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
Comments
Thanks @atomrevival I'll have a look at this issue shortly |
Seems that the cause of the issue is const cssModuleKeys = getCssModuleKeys(
content.substring(content.indexOf("exports.locals"))
) That's happen because since Sources:
@Obi-Dann I have a fix with tests, let me know if I can open PR 🙂 |
Fixes #33 Adding duplicate tests for css-loader@3 to ensure we're backward compatible
Thanks for the investigation @shimizacken! I've a PR ready fixing the problem so it should be working with both css-loader 3 and 4. However, I'd have gladly accepted your PR, you don't need a permission to create a PR so please don't hesitate creating a PR next time. 😉 I am also going to setup a daily build with using both current dependencies from package-lock and latests so hopefully there'll be failing build if the loader stops working with the latest version of css-loader. |
My pleasure
Thank you!
Sound like good approach 👌 I just tested the latest version and happy to confirm that it is fixed 👍 |
Awesome, you guys! Thank you! 👍 |
Uh oh!
There was an error while loading. Please reload this page.
After upgrading to [email protected], it seems that I'm generating properties in my
*.d.ts
files from my*.scss
file AND a source map file. The latter is an assumption due to what comes up in the list,{ file, mappings, names, sources, sourcesContent, version, ...cssClasses }
.config
Expected behaviour:
Only CSS classes from a
.scss
file should be generated as types.The text was updated successfully, but these errors were encountered: