-
Notifications
You must be signed in to change notification settings - Fork 828
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(desktop): support local react devtools #1084
feat(desktop): support local react devtools #1084
Conversation
What it is? |
|
Let me answer for him. If your computer has developed other electron projects before, they also used So we discussed and decided to maintain the react devtools in a separate flat project. |
Can we use a forked package instead of storing those files to code base? |
The benefits of this are
|
This is difficult, I'm afraid, because the files are actually obtained from the crx decompression. |
This should not be called benefit. Developers should be able to solve network issues. We don't have to care network issue for them. Like #1037 does. It is not elegant to store these unreadable files directly in the project. I think we can use The main point is: we don't need to track these files in the current repo. We can use npm or GitHub repo (prefered) for storing this:
"devDependencies": {
+ "electron-devtools": "netless/electron-devtools#0.0.1"
} In const extPath = path.resolve(
__dirname,
"..",
"..",
"..",
"..",
"..",
- "third_party",
+ "node_modules",
+ "electron-devtools", |
you've got a point. I'm not going to use the git submodule approach to do this, as it's a bit of a pain to manage. npm is a good idea |
@LitoMore
|
The GitHub repo what I mean is used for the npm package. It's easier for bumping versions and we don't have to publish any package to npm. I guess you guys misunderstood what I am talking about. |
The older React Developer Tools not compatible with react framework. It block my dev experience.
As many research, I found the root cause. Suggest to lock the React Developer Tools to avoid the weird error case.
Resolution: add third_party to lockReact Developer Tools version.