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

Provide a way to import mobx-devtools from JavaScript #45

Open
linvain opened this issue Feb 12, 2019 · 2 comments
Open

Provide a way to import mobx-devtools from JavaScript #45

linvain opened this issue Feb 12, 2019 · 2 comments

Comments

@linvain
Copy link

linvain commented Feb 12, 2019

This feature is particularly useful for developing browser extensions. See react-devtools

If you install react-devtools as a project dependency, you may also replace the <script> suggested above with a JavaScript import (import 'react-devtools'). It is important that this import comes before any other imports in your app (especially before react-dom). Make sure to remove the import before deploying to production, as it carries a large DevTools client with it. If you use Webpack and have control over its configuration, you could alternatively add 'react-devtools' as the first item in the entry array of the development-only configuration, and then you wouldn’t need to deal either with <script> tags or import statements.

@andykog
Copy link
Member

andykog commented Mar 10, 2019

@linvain could you please elaborate on what you're trying to achieve? You goal is to debug browser extension written using mobx?

@linvain
Copy link
Author

linvain commented Jun 7, 2019

@andykog yes

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

No branches or pull requests

2 participants