-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Describe the bug
this line here
ffmpeg.wasm/packages/ffmpeg/src/classes.ts
Lines 193 to 195 in efac247
new Worker(new URL(classWorkerURL, import.meta.url), { | |
type: "module", | |
}) : |
always loads the workers in module mode. BUT webpack umd modules are NOT in module mode. so importScripts silently fails and ffmpeg never loads.
webpack outputs some bizarre "import" code


To Reproduce
make a copy of the UMD builds from node, and try to load them from a non-module source
Expected behavior
the modules, in umd mode, should be loaded in classic mode, not umd
Screenshots
see above
Desktop (please complete the following information):
- OS: Windows 11
- Browser: MS Edge
- Version: 0.12.10
Additional context
this bug was a NIGHTMARE to track down. the errors are caught and silently fail with no traceback. horrible.
Metadata
Metadata
Assignees
Labels
No labels