-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: basic devtools integration #6
base: master
Are you sure you want to change the base?
Conversation
@@ -1,6 +1,10 @@ | |||
// TODO: have to force "production" env or the react-reconciler will | |||
// swallow errors in non-browser environments | |||
|
|||
if (process.env.NODE_ENV !== 'production') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can there be another flag other than just if it's not in production? Perhaps another variable such as INSPECT
or something along those lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the question is, do we want to ship the extra libraries it requires on a production bundle too? React DOM is always enabled despite it being a production bundle or not. If that's the case, how about DEBUG
then it can be shared with the debug
module?
Wow, it looks amazing and I would like to take a try firstly. I think this feature may help to improve the development experience a lot. |
Good stuff, will wait for that then @oyyd! |
Have a merge conflict now. |
* master: doc: tips for node versions Fix text and entry not getting yoga styles chore: link to react-yue-app as an example of another app setup Move font and color definitions into style Update to latest react-reconciler api
fixed @shichongrui! |
Hi,
This PR adds some basic react-devtools integration:
Thanks to @nitin42 for https://github.com/nitin42/Making-a-custom-React-renderer/blob/c6e7dea06b4ab3527c5375f8e0a45c235304e56c/part-one.md and to @iamdustan for http://iamdustan.com/2016/02/19/react-devtools-renderer-integration/!