We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c2e2e2 commit f3a4ab9Copy full SHA for f3a4ab9
packages/ffmpeg/src/worker.ts
@@ -54,7 +54,7 @@ const load = async ({
54
// when web worker type is `classic`.
55
importScripts(_coreURL);
56
} catch {
57
- if (!_coreURL) _coreURL = CORE_URL.replace('/umd/', '/esm/');
+ if (!_coreURL || _coreURL === CORE_URL) _coreURL = CORE_URL.replace('/umd/', '/esm/');
58
// when web worker type is `module`.
59
(self as WorkerGlobalScope).createFFmpegCore = (
60
(await import(
0 commit comments