mozilla/web-ext

`run` is slow to re-upload the extension to the device

Opened this issue · 0 comments

Is this a feature request or a bug?

Bug

What is the current behavior?

Whenever I make a change in a project file, it might take a minute or two before I see it installed on Firefox for Android

How to reproduce

  1. Start a project in Plasmo (or use mine, YouTube Auto HD + FPS, and skip to 4), although I'm sure it behaves the same without using a framework
  2. Have a basic file structure, like
    package.json
    content.ts
    
  3. Add a entries to package.json:
    {
      "scripts": {
        "dev:firefox": "plasma dev --target=firefox-mv2 --verbose",
        "run-firefox:android": "web-ext run --start-url https://www.youtube.com/watch?v=aiSla-5xq3w --target firefox-android --source-dir=build/firefox-mv2-dev --verbose --overwrite --android-device=ID"
      }
    }
  4. Run dev:firefox and run-firefox:android (replace ID with the emulator ID)
  5. Make a modification to content.ts
  6. Should take a while before the new ext version gets loaded into the Firefox app

What is the expected or desired behavior?

Should load much quicker

Version information (for bug reports)

  • Firefox version: 118.0.1
  • Your OS and version: Android 13 emulator that runs inside a Windows 10 Pro 22H2 machine
  • Paste the output of these commands:
node --version && npm --version && web-ext --version
v20.3.1
8.7.6
8.8.0