ffmpegwasm / ffmpegwasm/ffmpeg.wasm

ffmpeg triggers `--require` flags to re-run the module that's required

Aperta
#246 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
17.8k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
When running my server with `--require` flags, those modules get re-loaded several times during ffmpeg's transcoding.

**To Reproduce**
I've created a reproduction repo with reproduction steps in the README: https://github.com/kentcdodds/ffmpeg-require-flag

**Expected behavior**
I expect the `--require`ed module to only run once.

**Desktop:**
- OS: macOS
- Node
- Version 16.3.0

**Additional context**
In my real scenario, I use `--require` during development to require some HTTP interception mocks and to initialize development-time environment variables.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.