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

The invariant message will be stripped in production? #36

Open
simon998yang opened this issue Jul 23, 2018 · 1 comment
Open

The invariant message will be stripped in production? #36

simon998yang opened this issue Jul 23, 2018 · 1 comment

Comments

@simon998yang
Copy link

Sorry to ask a naive question, but I really scratching my hair right now.

Can you enlighten me how The invariant message will be stripped in production?

I read this https://reactjs.org/blog/2016/07/11/introducing-reacts-error-code-system.html , and understand prior to react 15.2.0, react stripe the message at build time, and after react15.2.0, it rewrite invariant to some error code stead of total stripe the message but also at build time.

So how about this library? do i need to setup some extra build steps as well?

loads of thanks in advance.

@simon998yang
Copy link
Author

all right, i figured out this lib needs to be used together with babel-plugin-dev-expression kind.

Better to mention this somewhere in the readme to avoid confusion.

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

No branches or pull requests

1 participant