Eyevinn / webrtc-player

WebRTC (recvonly) player
MIT License
87 stars 18 forks source link

Publish as ES6 module #68

Open philip-lamb opened 3 months ago

philip-lamb commented 3 months ago

The structure of this code as a CommonJS module causes some downstream problems, in my case errors in Cloudflare Pages deployment including the code.

Apparently its easy to dual-publish as both CommonJS and ES6 modules, as per this post: https://stackoverflow.com/a/63773940/316487

TIA