@mediabunny/mp3-encoder 1.29.0 → 1.30.0
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.
- package/dist/bundles/mediabunny-mp3-encoder.js +7 -0
- package/dist/bundles/mediabunny-mp3-encoder.min.js +2 -1
- package/dist/bundles/mediabunny-mp3-encoder.min.mjs +2 -1
- package/dist/bundles/mediabunny-mp3-encoder.mjs +7 -0
- package/dist/modules/src/index.d.ts.map +1 -1
- package/dist/modules/src/index.js +8 -0
- package/package.json +1 -1
- package/src/index.ts +11 -0
|
@@ -315,6 +315,13 @@ var MediabunnyMp3Encoder = (() => {
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
// packages/mp3-encoder/src/index.ts
|
|
318
|
+
var MP3_ENCODER_LOADED_SYMBOL = Symbol.for("@mediabunny/mp3-encoder loaded");
|
|
319
|
+
if (globalThis[MP3_ENCODER_LOADED_SYMBOL]) {
|
|
320
|
+
console.error(
|
|
321
|
+
"[WARNING]\n@mediabunny/mp3-encoder was loaded twice. This will likely cause the encoder not to work correctly. Check if multiple dependencies are importing different versions of @mediabunny/mp3-encoder, or if something is being bundled incorrectly."
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
globalThis[MP3_ENCODER_LOADED_SYMBOL] = true;
|
|
318
325
|
var Mp3Encoder = class extends import_mediabunny.CustomAudioEncoder {
|
|
319
326
|
constructor() {
|
|
320
327
|
super(...arguments);
|