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

Update getCSSModuleLocalIdent to support Sass #4391

Merged
merged 2 commits into from
May 8, 2018
Merged

Update getCSSModuleLocalIdent to support Sass #4391

merged 2 commits into from
May 8, 2018

Conversation

arianon
Copy link
Contributor

@arianon arianon commented May 1, 2018

I updated react-dev-utils/getCSSModuleLocalIdent to make the cases of index.module.scss and index.module.sass consistent with its behavior for index.module.css, meaning that all three should (approximately) output [folder]_[localName]__[hash] as their localIdent.

I also added tests to ensure this works correctly, but sadly I couldn't run them on my machine so I'll piggyback your CI.

Also make them more consistent with the non-index variants.
@Timer
Copy link
Contributor

Timer commented May 2, 2018

Does this need updated too?

x-ref: #4345 (comment)

@Timer Timer added this to the 2.0.0 milestone May 8, 2018
@Timer
Copy link
Contributor

Timer commented May 8, 2018

Thanks!

@Timer Timer merged commit e5e9f59 into facebook:next May 8, 2018
zmitry pushed a commit to zmitry/create-react-app that referenced this pull request Sep 30, 2018
* Update getCSSModuleLocalIdent to support Sass

* Fix Sass/SCSS index module tests

Also make them more consistent with the non-index variants.
@lock lock bot locked and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants