79722036

Date: 2025-08-01 03:40:34
Score: 0.5
Natty:
Report link

It turns out I have to build the extension with hoist flag.

plasmo build --target=firefox-mv3 --hoist

The docs say hoisting can break the dependency:

Note that hoisting can potentially break your dependency, especially those that import dynamic dependency via a plugin system. However, hoisting can significantly improve the bundling speed and reduce the size of your bundle.

Ironically, not hoisting breaks my extension.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Adib Zaini