-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[webextensions] Parcel doesn't accept manifest v3 with both service_worker
and scripts
#9458
Comments
Additional relevant threads:
|
Chrome 121 is out and this is preventing me from building cross-browser MV3 extensions unfortunately. |
Per https://stackoverflow.com/a/78088358/180709 both are valid and this finally allows truly cross-browser extension packaging with Parcel. Please allow both keys. |
This is great news! Official docs from Chrome about their MV3 manifest accepting the MV2 background values without erroring: https://developer.chrome.com/docs/extensions/whats-new#background-key-warning |
Do you have any ETA when these changes will be released? |
🐛 bug report
Parcel supports either
background.service_worker
orbackground.scripts
, but not both.Firefox supports
background.scripts
, but warns that it doesn't support the other one.Chrome won't load a manifest that has
background.scripts
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Parcel should build both, so that the extension can (eventually) be loaded in both browsers
😯 Current Behavior
💁 Possible Solution
Allow and build both pages, ideally build a single
background.js
file without generating two separate bundles.🔦 Context
Chrome has been open to allowing the
scripts
property in the manifest without throwing, however this hasn't been fixed in several months. It would be great for Parcel to start supporting it as soon as possible so that we don't have to wait any longer once Chrome supports it.💻 Code Sample
"scripts": ["background.js"],
to its manifest🌍 Your Environment
The text was updated successfully, but these errors were encountered: