-
Notifications
You must be signed in to change notification settings - Fork 22
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
#618: Drop secondary dev-only reload for web-ext run
#7470
Conversation
This is on my TODO list to test out before I approve. I want to be sure I understand the ramifications of the change. |
Do you use
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7470 +/- ##
==========================================
+ Coverage 72.58% 72.60% +0.01%
==========================================
Files 1210 1209 -1
Lines 37901 37890 -11
Branches 7120 7114 -6
==========================================
- Hits 27511 27510 -1
+ Misses 10390 10380 -10 ☔ View full report in Codecov by Sentry. |
So the only impact impact will be when making manifest changes? It will otherwise work the same or faster? We'll still get hot-reloading in web-ext for standard development and debugging? |
Basically yes. In practice, the "reload" mechanism of web-ext just turns off and on the extension, which means that the background is restarted and the content scripts are injected again. When I have a minute, I'll look into actual HMR as shown in that PR from a year ago, it'll be greatly helpful when working on styles and React components |
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 started running into the same issue more frequently. Let's give it a go and see if there are any issues. We can always revert.
No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack. Do not edit this comment manually. |
What does this PR do?
In short, this is causing Chrome to "crash" the MV2 extension and it requires a manual reload for me
Future work
Checklist