Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Disable Radium console warnings #860

Closed
shahzainb opened this issue Dec 5, 2016 · 5 comments
Closed

Disable Radium console warnings #860

shahzainb opened this issue Dec 5, 2016 · 5 comments

Comments

@shahzainb
Copy link

Hi, is there a way to disable the console.warn that Radium does when checking styles?

Thanks.

@gwendall
Copy link

gwendall commented Dec 9, 2016

+1

1 similar comment
@nunobbras
Copy link

+1

@pgazmuri
Copy link

pgazmuri commented Sep 7, 2017

+1
Though for those looking for an alternate solution, you can filter warnings out of the console, if that suits your needs...

@ryan-roemer
Copy link
Member

ryan-roemer commented Oct 17, 2017

Hi folks,

Our two calls to console.warn have the "standard" guards of:

if (process.env.NODE_ENV !== 'production') {

just like React and the rest of our ecosystem of libraries have so that these disappear in your webpack frontend prod bundles using DefinePlugin and in node on the backend using NODE_ENV.

Is there an additional use case that we need to support here?

@ryan-roemer
Copy link
Member

No activity here, so closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants