@mediabunny/mp3-encoder 1.34.4 → 1.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -298,11 +298,10 @@ var MediabunnyMp3Encoder = (() => {
|
|
|
298
298
|
return worker;
|
|
299
299
|
} else {
|
|
300
300
|
let Worker3;
|
|
301
|
-
const workerModule = "node:worker_threads";
|
|
302
301
|
try {
|
|
303
|
-
Worker3 = (await import(
|
|
302
|
+
Worker3 = (await import("worker_threads")).Worker;
|
|
304
303
|
} catch {
|
|
305
|
-
Worker3 = __require(
|
|
304
|
+
Worker3 = __require("worker_threads").Worker;
|
|
306
305
|
}
|
|
307
306
|
const worker = new Worker3(scriptText, { eval: true });
|
|
308
307
|
return worker;
|