simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

ES Module Support

Open nikeee opened this issue 6 years ago • 2 comments

Since every major browser now supports ES Modules, it would be nice to have this library offered as ES Module as well. This way, we could use it without the need of a bundler.

nikeee avatar Mar 27 '20 05:03 nikeee

Hi, if this is enough for you, I made a fork of simple-peer which is a plain ES module:

mitschabaude/simple-peer-light

It's on npm as simple-peer-light.

mitschabaude avatar Jan 05 '21 10:01 mitschabaude

ES modules are also required for use with https://vitejs.dev/

I can confirm that simple-peer-light by @mitschabaude works (I used a fork of it: https://github.com/bmz1/simple-peer by @bmz1) Thanks a lot for the work!

holtwick avatar Feb 26 '21 22:02 holtwick