You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use @parcel/config-webextension for a ManifestV3 WebExtension for Firefox, adding a background script results in an error: "Missing property service_worker".
However, since Firefox (and Safari too, IIRC) also support Event Pages, it is valid to have a background property without a service_worker.
(And in fact, adding the service_worker property at the time of writing will even cause an error, because SW support hasn't been implemented yet.)
🐛 bug report
When trying to use
@parcel/config-webextension
for a ManifestV3 WebExtension for Firefox, adding abackground
script results in an error: "Missing property service_worker".However, since Firefox (and Safari too, IIRC) also support Event Pages, it is valid to have a
background
property without aservice_worker
.(And in fact, adding the
service_worker
property at the time of writing will even cause an error, because SW support hasn't been implemented yet.)🎛 Configuration (.babelrc, package.json, cli command)
Just trying to run Parcel with
🤔 Expected Behavior
Parcel should build the extension without errors.
😯 Current Behavior
Parcel complains about
background
not having aservice_worker
value.💁 Possible Solution
Remove
service_worker
from the following line, or modify it to require eitherservice_worker
orscripts
:parcel/packages/transformers/webextension/src/schema.js
Line 460 in 0759d1b
🔦 Context
I'm trying to use Parcel to build an MV3 WebExtension that will support at least both Firefox and Chrome.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: