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
v2.6.0 BUG: web-extension, content script, importScripts() is not supported in module workers #8168
Comments
I was about to make an issue for this. #8145 will fix this. |
Having a similar problem when switching from 2.5.0 to 2.6.0
and there is no |
I'm still having this issue on Edit: same issue on What's even weirder is that adding the same HTML page in the manifest (e.g. as the |
🐛 bug report
There is a regression with how Parcel 2.6.0 HMR handles content script as well as background script for web extension runtime. I got an error (pasted below) when trying to use
@parcel/config-webextension@2.6.0
to build an extension with just a single content script.🎛 Configuration (.babelrc, package.json, cli command)
The content script looks like this:
🤔 Expected Behavior
In 2.5.0, the above content script worked.
😯 Current Behavior
Upon upgrading to 2.6.0, it threw the error below:
💁 Possible Solution
We are investigating the HMR runtime #8159. Will continue doing so for a bit more, haven't figured out what's causing this issue but I suspect contentscripts and background scripts are using the wrong transformer/resolver?
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: