Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES Module Support #600

Open
nikeee opened this issue Mar 27, 2020 · 2 comments
Open

ES Module Support #600

nikeee opened this issue Mar 27, 2020 · 2 comments

Comments

@nikeee
Copy link

nikeee commented Mar 27, 2020

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.

@mitschabaude
Copy link

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.

@holtwick
Copy link
Contributor

holtwick commented Feb 26, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants