Skip to content
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

Merged
merged 3 commits into from Dec 26, 2023

Conversation

koga73
Copy link
Contributor

@koga73 koga73 commented Dec 21, 2023

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

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.

Copy link

linux-foundation-easycla bot commented Dec 21, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@alexander-akait alexander-akait left a 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

Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (797042c) 95.78% compared to head (dfef5b7) 95.78%.

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.
📢 Have feedback on the report? Share it here.

@alexander-akait alexander-akait merged commit 05002f3 into webpack-contrib:master Dec 26, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants