Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMeta: ES Next #1443
Meta: ES Next #1443
Comments
This comment has been minimized.
This comment has been minimized.
|
Do you plan to add support for ESModule like imports? import { WebTorrent } from 'https://unpkg.com/webtorrent'
|
This comment has been minimized.
This comment has been minimized.
|
@hgghyxo I think you have to do |
This comment has been minimized.
This comment has been minimized.
|
Have tried all the methods, but it always have some problems. In this case:
which is Tried the minified version as well:
|
This comment has been minimized.
This comment has been minimized.
|
my workaround here is to simply call a |
This comment has been minimized.
This comment has been minimized.
|
Are you using webpack, babel? |
This comment has been minimized.
This comment has been minimized.
|
neither, ESModule: |
This comment has been minimized.
This comment has been minimized.
|
oh, then just use the normal import and it'll be available as a global. There's no plan on supporting ES Modules atm |
This comment has been minimized.
This comment has been minimized.
|
Webtorrent-hybrid was't a big project: webtorrent/webtorrent-hybrid#86 |
This comment has been minimized.
This comment has been minimized.
|
webtorrent main lib done! |
This comment has been minimized.
This comment has been minimized.
|
Just a note to everyone! You can use |
This comment has been minimized.
This comment has been minimized.
|
PR's waiting to be merged |
This comment has been minimized.
This comment has been minimized.
|
Not sure if it was intended to close this |
This comment has been minimized.
This comment has been minimized.
|
Correct |
Let's convert all WebTorrent packages to ES6. (Continued from #444)
Note that this is a separate task from async-await (Promises) support.