-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
refactor/mv3 contentScript HMR is not work #114
Comments
SAME, and my solution was to install the Extensions Reloader. After making changes to the extension files, I would on click the |
@xlzy520 Has the problem been resolved now? I also encountered the same problem. |
|
@tmkx as far as I can tell, HMR ins't working for content script on the |
I think it's hard to make HMR working for contentScript? for example, the script is injected to a webpage(.e.g https://example.com),when we try to connect with vite server(protocol http), it should meet a "mixed content" error |
It is still not work for now. |
After I tested, plasmo seems not supported content scripts TRUE HMR, related code: consolidateUpdate(), it reload page roughly, but chrome-extension-tools supported. ref: PlasmoHQ/plasmo#755 |
Describe the bug
code
page
if refresh the ext
page is ok.
Reproduction
vitesse-webext/src/contentScripts/index.ts
System Info
System: OS: macOS 11.7.1 CPU: (8) arm64 Apple M1 Memory: 96.77 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.14.0 - /usr/local/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 8.3.1 - /usr/local/bin/npm Browsers: Chrome: 108.0.5359.124 Edge: 103.0.1264.71 Firefox: 106.0 Safari: 14.1.2
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: