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

15 lines
338 B
JavaScript

// Stub for @ipshipyard/node-datachannel (CJS)
class PeerConnection {
constructor() {}
close() {}
setLocalDescription() {}
setRemoteDescription() {}
addRemoteCandidate() {}
createDataChannel() { return {}; }
}
class IceUdpMuxListener {
constructor() {}
close() {}
}
module.exports = { PeerConnection, IceUdpMuxListener };