ffmpegwasm / ffmpegwasm/ffmpeg.wasm

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

オープン
#246 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
17.8k
フォーク
1.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

**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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。