sidehustlelab / chrome-manifest-v3-webpack-hotreload-template

Chrome Extension Template (Manifest v3) Webpack Hot reload
37 stars 5 forks source link

How can it work? #2

Open nicoandmee opened 2 years ago

nicoandmee commented 2 years ago

I'm trying to get hot reload working in my Manifest v3 extension. I've set it up in the same as in this project, and it successfully connects and sees there are changes. However, it throws an error on recompiling. image

This makes sense to me since MV3/service worker has no access to DOM. Yet that's how the changes seem to be getting applied (via script tag injection). Am I missing something? Is there truly no way to get hot reload working in a MV3 extension?