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

feat: basic devtools integration #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dariocravero
Copy link
Contributor

@@ -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') {

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?

Copy link
Contributor Author

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?

@oyyd
Copy link
Owner

oyyd commented Jun 16, 2018

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.

@dariocravero
Copy link
Contributor Author

Good stuff, will wait for that then @oyyd!

@shichongrui
Copy link

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
@dariocravero
Copy link
Contributor Author

fixed @shichongrui!

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.

3 participants