class NoopBroadcastChannel {
  name;
  onmessage = null;
  onmessageerror = null;
  constructor(name) {
    this.name = name;
  }
  addEventListener() {
  }
  removeEventListener() {
  }
  dispatchEvent() {
    return false;
  }
  close() {
  }
  postMessage() {
  }
}
const bc = typeof BroadcastChannel === "undefined" ? NoopBroadcastChannel : BroadcastChannel;
export {
  bc as BroadcastChannel
};
//# sourceMappingURL=broadcast-channel.js.map
