Skip to content

implement warningWhenNotFound option #248

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

Closed

Conversation

pechitook
Copy link
Contributor

This implements what was suggested in #209. I'm still not 100% buying how the two options interact with each other since you have to manually disable errorWhenNotFound and enable warningWhenNotFound. Ideally I would like to have a way to specify the log level when a class is not found, but maybe keeping backwards compatibility is more valuable and we can afford this redundancy. Thoughts?

@gajus
Copy link
Owner

gajus commented Jul 25, 2017

We should really try to keep this inline with the Babel version of the library.

gajus/babel-plugin-react-css-modules#112 (comment)

@pechitook
Copy link
Contributor Author

Thanks for the fast response! I agree with what you proposed there. I will change this to use handleNotFoundStyleName: (throw | log | ignore).

@pechitook
Copy link
Contributor Author

Closing to favor #249

@pechitook pechitook closed this Jul 26, 2017
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.

2 participants