Files
zeekay cda4e3c4e8 Add node-datachannel stub with polyfill subpath for next build
@libp2p/webrtc imports @ipshipyard/node-datachannel/polyfill which
requires native C++ compilation. Stub provides ESM+CJS exports for
both main and polyfill subpaths with no-op WebRTC classes. Also
ignores pnpm-lock.yaml in cspell and copies stubs dir in Dockerfiles.
2026-02-24 18:07:34 -08:00

25 lines
497 B
JavaScript

// Stub for @ipshipyard/node-datachannel
// Native WebRTC module not needed for Lux blockchain explorer
class PeerConnection {
close() {}
setLocalDescription() {}
setRemoteDescription() {}
addRemoteCandidate() {}
createDataChannel() {
return {};
}
onLocalDescription() {}
onLocalCandidate() {}
onStateChange() {}
onGatheringStateChange() {}
onDataChannel() {}
}
class IceUdpMuxListener {
close() {}
}
export { PeerConnection, IceUdpMuxListener };
export default {};