From 20d7f42282f6e1569e2a112c2655461436dd1568 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Tue, 12 Mar 2024 13:49:42 +0000 Subject: [PATCH] core-mt: add worker export Enables usage like: `import FFmpegWorker from '@ffmpeg/core/worker'`. Follow up to PR https://github.com/ffmpegwasm/ffmpeg.wasm/pull/642, which did not actually add an export for worker files. --- packages/core-mt/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core-mt/package.json b/packages/core-mt/package.json index c90dfcd7a1..e33d171ecc 100644 --- a/packages/core-mt/package.json +++ b/packages/core-mt/package.json @@ -11,6 +11,10 @@ "./wasm": { "import": "./dist/esm/ffmpeg-core.wasm", "require": "./dist/umd/ffmpeg-core.wasm" + }, + "./worker": { + "import": "./dist/esm/ffmpeg-core.worker.js", + "require": "./dist/umd/ffmpeg-core.worker.js" } }, "files": [