Closed yorkxin closed 1 year ago
background.js with ESModule is supported as of Firefox 112. It might be possible to use the same background.js as Chrome.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/112#changes_for_add-on_developers
ESM done by #122 but the build script (cp) is still required because there are two targets to build: firefox and chrome.
cp
Summary
background.js with ESModule is supported as of Firefox 112. It might be possible to use the same background.js as Chrome.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/112#changes_for_add-on_developers