I'm migrating a Chrome extension from manifest version 2 to version 3.
I see that background
scripts must be placed under the new service_worker
object.
https://developer.chrome.com/docs/extensions/mv3/mv3-migration/#man-sw
It seems from the documentation I can specify multiple service_worker
. Do these script run in parallel?
You can have one service worker. I know it's not clear about that, but we are working on fixing the documentation.
Incidentally, if you need multiple files you can load ES6 modules into your service worker. I would give you more guidance, but I'm new on this product and have not had a chance to even try this myself.