-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Updated generateExportEntry to expose node details #1556
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, can you add a small test case to ensure everything works
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1556 +/- ##
=======================================
Coverage 95.78% 95.78%
=======================================
Files 10 10
Lines 1185 1185
Branches 456 456
=======================================
Hits 1135 1135
Misses 41 41
Partials 9 9 ☔ View full report in Codecov by Sentry. |
This PR contains a:
Motivation / Use-Case
I would like the ability to only transform class names and not transform id. This is because keeping the original id is useful for anchoring (href="#section1") as well as code that rely on finding elements by id (automated tests, analytics, vanilla js, etc).
#1540
Breaking Changes
N/A
Additional Info
Updated postcss-modules-scope dependency with latest which passes the node object to generateExportEntry. The node object has a "type" property that can be used to determine if the node is an id or class.