ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.22k stars 831 forks source link

ffmpeg: allow import in nodejs #577

Closed Elia872 closed 12 months ago

Elia872 commented 1 year ago

Importing @ffmpeg/ffmpeg in nodejs results in SyntaxError: Unexpected token 'export'. This can lead to problems in a SSR application.

This just exports an empty file and any use of a function/class will result in an error.

netlify[bot] commented 1 year ago

Deploy Preview for ffmpegwasm canceled.

Name Link
Latest commit 5d7860fcbb79b7c682aca8df66ae484d13ab5f78
Latest deploy log https://app.netlify.com/sites/ffmpegwasm/deploys/64fb26a3de863200084c4ff5
jeromewu commented 12 months ago

LGTM, thanks!