samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
325 stars 32 forks source link

Clarify MV3-in-Firefox support in README #61

Closed Vinnl closed 1 year ago

Vinnl commented 1 year ago

It wasn't entirely clear to me from the README whether MV3 in Firefox is supported. Trying it out it seems like no? Since the serve:firefox script did not pass --firefox-preview mv3 to web-ext, the manifest.ts lists a service_worker (not yet supported by Firefox), and even after fixing those two issues, I get "Error: Extension is invalid".

To set expectations, it would be nice if the README had an indication of the current status of support for MV3 in Firefox :)

samrum commented 1 year ago

Good point! Firefox didn’t have any manifest V3 support at the time, but I do understand they have some experimental support now. I haven’t looked into it much, but can definitely note that it’s not usable in the developer preview at the moment and see what’s required for it to work.

samrum commented 1 year ago

Added a "Firefox Experimental Manifest V3" example to the readme that explains how to configure the plugin to work with it. Requires v2.2.0 of the plugin.

Vinnl commented 1 year ago

Oh wow, experimental support is even better, nice!