Hello,
I'm encountering some very weird behavior when trying to set up a chrome.runtime.onInstalled listener in my service worker script and then test it by loading my unpacked extension.
When I load the unpacked extension (or click the "reload" icon for my extension in the extension management page), the console.error() call on line 29 gets executed (because it shows up in the "Errors" list for the extension), but the console.error() call on line 31 does not get executed (based on checking the extension's "Errors" list). I really can't figure out how that would happen, especially since
this says that the onInstalled event would fire when an unpacked extension was reloaded (albeit with the "update" reason).
Also, it's weird that my "loglevel"-based logger calls (which in this case simply delegate to console.warn() ) don't actually seem to work when the service worker script is being loaded on extension install/reload. Is there documentation/explanation somewhere of why it works that way (I've tried to find anything relevant in the extension dev docs)?
P.S. here's the relevant part of my manifest.json
```json
"background": {
"service_worker": "src/background.js",
"type": "module"
},
```
Does the `"type": "module"` part matter?