Skip to content

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.

arianon added 2 commits May 1, 2018 16:38
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