@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.
@@ -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);