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鈥檒l 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 |
馃悰 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: