Consider CJS or help with ESM (for Electron, nw, proton-native) #2397
Unanswered
pastinepolenta
asked this question in
Q&A
Replies: 1 comment 4 replies
-
webtorrent 1.x is still CJS :) There's no webtorrent 4.x ?? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have noticed that now
webtorrent-hybrid
is ESM only.While I probably can see the reasons of this choice I am struggling using webtorrent in any of the popular cross platform frameworks. I tried:
None of them seems to support ESM.
Thus, I am using an old version of webtorrent (4.x). You could argue that is on them to add ESM support, but it doesn't seem to be a trivial task and it's not gonna happen any time soon.
How to you package the webtorrent-desktop app anyways?(EDIT: I see it uses webtorrent, not hybrid)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions