Open SkyfallWasTaken opened 10 months ago
Okay, so I just found the problem:
Crxjs uses background service workers, which are unsupported in Firefox.
background service workers, which are unsupported in Firefox.
Really ?? I could have sworn it supported service workers at some point
if you use manifest.config.ts to define and export manifest.config.jsonsee here, you can follow @crxjs/vite-plugin/dist/index.d.ts and find background key requirement.
interface ManifestV3 {
...
background?: ChromeManifestBackground | FirefoxManifestBackground | undefined;
}
interface FirefoxManifestBackground {
scripts: string[];
persistent?: false;
}
Build tool
Vite
Where do you see the problem?
Describe the bug
When loading the example Vite project into Firefox, I get this error:
Reproduction
Repro: https://github.com/SkyfallWasTaken/airhorn-ext
about:debugging#/runtime/this-firefox
in Firefoxmanifest.json
fileLogs
System Info
(note that I'm using Bun 1.0.7 to run everything, not Node 1 😅)
Severity
blocking all usage of RPCE