-
-
Notifications
You must be signed in to change notification settings - Fork 384
fix: [2.5.1] mark getCssModule and getCssDependency as public #900
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
Conversation
|
There is ts bug here as you can see... |
I tried to solve it, but no luck, ideally we should move CssModules and CssDependecy on top, but we can't do it due design... |
I see. I also missed the actual private in the d.ts. checking...I didn't realized it's generated. |
If you found how we can solve it or ideas, I will fix and merge it |
I have a fix but I got issues with the pre-commit hook
Not sure what's the problem there I can't identify any problem with the code. I can force push if you want to check it. |
skip hooks, I will fix it |
Just send code |
Codecov Report
@@ Coverage Diff @@
## master #900 +/- ##
=======================================
Coverage 91.23% 91.23%
=======================================
Files 5 5
Lines 821 821
Branches 219 219
=======================================
Hits 749 749
Misses 66 66
Partials 6 6
Continue to review full report at Codecov.
|
I'm sorry I did only the basic type I think the static methods still needs to typed in the |
@barak007 Found better way #901, anyway we have some problems on webpack side (using your implementation also have these problems): |
This PR contains a:
Motivation / Use-Case
Mark
getCssModule
andgetCssDependency
as publicgetCssModule
is the base of our integration tomini-css-extract-plugin
added support done here #703We ended up not using
getCssDependency
but I feel like it should also be public.These are the basic building blocks for proper integration to css bundling in webpack
Breaking Changes
Fix types
Additional Info