ffmpegwasm / ffmpegwasm/ffmpeg.wasm

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

未关闭
#246 0 条评论 0 个 reaction 已指派 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 摘要。