davestewart
Explore posts from serversPD🧩 Plasmo Developers
•Created by davestewart on 5/27/2023 in #👟framework
How does the service worker hot reload mechanism work?
Hello, hello...
Very impressed with my initial look at Plasmo. Some lovely ideas and implementations in the framework 👏
I have my own internal framework that does many of the things Plasmo does including live reload on all scripts, but I'm blocked in migrating to manifest v3 as I don't know what the mechanics would be to reload a service worker.
Unfortunately a wholesale migration to Plasmo right now is not on the cards, but @louis , I wonder if you could give me a high-level overview of how you guys are handling service worker reload?
@stefan was kind enough to confirm the magic is happening in this file, so perhaps if you could explain what's going on I could apply that to my own setup:
https://github.com/PlasmoHQ/plasmo/blob/main/packages/parcel-runtime/src/runtimes/background-service-runtime.ts
In the meantime I'm going to migrate a simpler extension to Plasmo so I can begin to get to grips with what looks like a great framework.
Thanks!
Dave
42 replies