-
Notifications
You must be signed in to change notification settings - Fork 71
typings-for-css-modules-loader 2.0 is now available (fork) #94
Comments
Hey @DanNSam thanks for letting us know abut the fork and newer version, Im having issues trying to implement it, can you please take a look at TeamSupercell/typings-for-css-modules-loader#7 (comment)? or TeamSupercell/typings-for-css-modules-loader#8 |
@DanNSam Thanks for this new version. I am wondering is it possible to still support |
@weyert unless I am missing something, you should be able to use |
@DanNSam Thank you, could you tell me the version of css-loader you use. I don't find the 'namedExport' property in css-loader options |
@Jad2wizard, sorry, I added |
Hi @Obi-Dann. Ended up here because I was searching an option like your Could you file a PR in this repo with your enhancements ? I could do it too, but I prefered to reach out first so you get to be the author 😌 |
Hi @toniopelo, AFAIK this repo is dead, no PRs get merged or issues resolved - that was the only reason I forked it. I am happy to help with resolving your issue though, perhaps you could raise an issue with preact-cli to switch to the fork? Or if you use yarn, you might be able to replace the original module with the fork via yarn resolutions or something like that |
Thanks for the answer @Obi-Dann I'll raise an issue on preact-cli. |
Hello everyone,
I forked
typings-for-css-modules-loader
, applied some of the pull requests, made it compatible with css-loader >= 1 and simplified configuration options. You're very welcome to try it and provide any feedback.https://github.com/TeamSupercell/typings-for-css-modules-loader
There's a list of changes
Changes
webpack>=4
andcss-loader>=0.28.11
css-loader
to be used alongsidecss-loader
.orderAlphabetically
options - the output keys are sorted by defaultnamedExport
andcamelCase
options. Generated type definition files now have default export and can both exportlocals
and support dashes in property names out of box. Example:silent
options because it becomes redundantformatter
option to allow formatting the generated files withprettier
. That should solve theeol
issues and apply consistent code style with other files in the code base.Upgrade guide:
allowSyntheticDefaultImports
TypeScript compiler option if there are type errors related to default importsThe text was updated successfully, but these errors were encountered: