Skip to content

feat: basic devtools integration#6

Open
dariocravero wants to merge 2 commits intooyyd:masterfrom
viewstools:basic-devtools-integration
Open

feat: basic devtools integration#6
dariocravero wants to merge 2 commits intooyyd:masterfrom
viewstools:basic-devtools-integration

Conversation

@dariocravero
Copy link
Contributor

// 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