Live reloading showing extension one state older than current code

Whenever I save some files, and the extension reloads, the page refreshes and shows me extension built using older version of code. So I have to reload the extension twice after each change so that the browser reflects the latest code and not the old code. I am using Google Chrome. Is there any way to fix this bug?
2 Replies
lab
lab•2y ago
Yeah, the code for the live-reload is in these runtime files: https://github.com/PlasmoHQ/plasmo/tree/main/core/parcel-runtime/src/runtimes
GitHub
plasmo/core/parcel-runtime/src/runtimes at main · PlasmoHQ/plasmo
🧩 The Browser Extension Framework. Contribute to PlasmoHQ/plasmo development by creating an account on GitHub.
lab
lab•2y ago
@fresauce you can try running with --verbose mode to debug what's going on, and why is the bundle not reload properly (i.e which bundle id is mismatching), and submit a PR to fix the framework bug!
Want results from more Discord servers?
Add your server