Can't discover/connect new peers using webrtc-star on js-libp2p@0.39.x

Peer discovery and connections are not happening with the latest libp2p version using webrtc-star transport (after esm upgrade).

I have created a failing test for both versions (before & after esm), with screenshots - https://github.com/ratik21/p2p-webrtc-star-test.

Related discussion thread :: https://discuss.libp2p.io/t/cant-discover-peers-with-webrtc-star-on-js-libp2p-0-37-0/1438