Skip to content

fix(encoders): externalize ffmpeg-static so the binary path survives bundling - #82

Draft
Roboroads wants to merge 1 commit into
mainfrom
fix/ffmpeg-dev-path
Draft

fix(encoders): externalize ffmpeg-static so the binary path survives bundling#82
Roboroads wants to merge 1 commit into
mainfrom
fix/ffmpeg-dev-path

Conversation

@Roboroads

Copy link
Copy Markdown
Collaborator

Vite inlined ffmpeg-static's index.js into the main bundle, so its __dirname-based binary path resolved to .vite/build/ffmpeg (ENOENT) and no encoder could ever spawn. Externalizing it makes it a runtime require, same as better-sqlite3; packaging already ships and unpacks the module.

…bundling

Signed-off-by: Robbin "Roboroads" Schepers <robbin@deschepers.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant