Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utp.js')
-rw-r--r--lib/utp.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utp.js b/lib/utp.js
index 2cde3f4..3140a47 100644
--- a/lib/utp.js
+++ b/lib/utp.js
@@ -1,6 +1,6 @@
-module.exports = (() => {
+export default (() => {
try {
- return require('utp-native')
+ return import('utp-native')
} catch (err) {
console.warn('WebTorrent: uTP not supported')
return {}