-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Meta: ES Next #1443
Comments
Do you plan to add support for ESModule like imports? import { WebTorrent } from 'https://unpkg.com/webtorrent'
|
@hgghyxo I think you have to do |
Have tried all the methods, but it always have some problems. In this case:
which is Tried the minified version as well:
|
my workaround here is to simply call a |
Are you using webpack, babel? |
neither, ESModule: |
oh, then just use the normal import and it'll be available as a global. There's no plan on supporting ES Modules atm |
Webtorrent-hybrid was't a big project: webtorrent/webtorrent-hybrid#86 |
webtorrent main lib done! |
Just a note to everyone! You can use |
PR's waiting to be merged |
Not sure if it was intended to close this |
Correct |
I just updated Hopefully we can close this soon! |
Amazing – this issue is finally finished up :) Thanks @transitive-bullshit for pushing out 2.0.0 of ✨ |
Let's convert all WebTorrent packages to ES6. (Continued from #444)
Note that this is a separate task from async-await (Promises) support.
The text was updated successfully, but these errors were encountered: